linq todictionary c# code example Example: c# linq to dictionary var dict = TableObj.ToDictionary( t => t.Key, t => t.TimeStamp );