Try using the ToDictionary
method like so:
var dict = TableObj.ToDictionary( t => t.Key, t => t.TimeStamp );
Related Posts:
- Group by in LINQ
- Join/Where with LINQ and Lambda
- LINQ’s Distinct() on a particular property
- Nullable object must have a value?
- Sequence contains no elements?
- LEFT OUTER JOIN in LINQ
- ToList().ForEach in Linq
- Extension methods must be defined in a non-generic static class
- Proper Linq where clauses
- Extension methods must be defined in a non-generic static class
- Select distinct using linq
- Get single value from dictionary by key
- IEnumerable vs List – What to Use? How do they work?
- Sequence contains no matching element
- Cannot implicitly convert type ‘System.Collections.Generic.List< >‘ to ‘System.Collections.Generic.IList< >‘
- Linq select objects in list where exists IN (A,B,C)
- How do I concatenate two arrays in C#?
- Convert SQL to LINQ Query
- Sequence contains more than one element
- Quickest way to compare two generic lists for differences
- LINQ query on a DataTable
- Using .Select and .Where in a single LINQ statement
- Linq: GroupBy, Sum and Count
- .Net 4.8 Support for Windows 10 ends in 26 days?
- What is a NullReferenceException, and how do I fix it?
- How do I get a random YouTube video with the YouTube API?
- How can I convert String to Int?
- What is a NullReferenceException, and how do I fix it?
- How to find child of a GameObject or the script attached to child GameObject via script
- Process cannot access the file because it is being used by another proess
- How to convert JSON to XML or XML to JSON?
- Virustotal Trapmine suspicious.low.ml.score
- Convert int to string?
- Unity OnTriggerEnter2D not registering
- How to Sort a List
by a property in the object - The page was not displayed because the request entity is too large on IIS
- Can’t add script component because the script class cannot be found?
- ‘do…while’ vs. ‘while’
- Visual Studio /**/ comment shortcut?
- Unable to resolve service for type while attempting to activate
- Return multiple values to a method caller
- Regex that accepts only numbers (0-9) and NO characters
- How to resolve this System.IO.FileNotFoundException
- What is WebResource.axd?
- Associating enums with strings in C#
- Fire ontextchanged() event of an asp:TextBox via Javascript
- Validation failed for one or more entities. See ‘EntityValidationErrors’ property for more details
- How to resolve this System.IO.FileNotFoundException
- C# Gridview CheckBox Field VS (Template Field + CheckBox)
- Convert char to int in C#
- The remote server returned an error: (403) Forbidden
- How to add a delay for a 2 or 3 seconds
- Multiple file-extensions searchPattern for System.IO.Directory.GetFiles
- calling javascript function on OnClientClick event of a Submit button
- C# – Illegal characters in path
- What is 0x10 in decimal?
- Visual Studio: The Operation could not be completed. The parameter is incorrect
- Member ‘
‘ cannot be accessed with an instance reference - when do you need .ascx files and how would you use them?
- How to open a new form from another form
- C# – How to convert string to char?
- The entity type
is not part of the model for the current context - Recommendation for C# Matrix Library
- System.BadImageFormatException: Could not load file or assembly
- Could not load file or assembly ‘Microsoft.Web.Infrastructure,
- Deep cloning objects
- Where to place native DLL to use Pocket PC emulator?
- Regular expression “^[a-zA-Z]” or “[^a-zA-Z]”
- What is the purpose of the vshost.exe file?
- System.ComponentModel.Win32Exception: Access is denied Error
- .NET graph library around?
- Input string was not in a correct format
- How to write a comment in a Razor view?
- Verify a method call using Moq
- Finalize vs Dispose
- XmlSerializer – There was an error reflecting type
- How to download a file from a URL in C#?
- Run Command Prompt Commands
- Calculate a MD5 hash from a string
- How can I wait for a thread to finish with .NET?
- How do I exit a WPF application programmatically?
- OnCollisionEnter is not called in unity
- The name ‘ViewBag’ does not exist in the current context – Visual Studio 2015
- How can we prepend strings with StringBuilder?
- C# conditional operator error Only assignment, call, increment, decrement, await, and new object expressions can be used as a statement
- How to create a new object instance from a Type
- does not implement interface member
- Differences between SFTP and “FTP over SSH”
- When should I use a List vs a LinkedList
- Remove punctuation from string with Regex
- Unity – How to stop Play Mode in case of infinite loop?
- Go To Definition: “Cannot navigate to the symbol under the caret.”
- Why am I getting an Exception with the message “Invalid setup on a non-virtual (overridable in VB) member…”?
- Is there a keyboard shortcut to maximize the Game window in Unity in Play Mode?
- IF Statement multiple conditions, same statement
- What is the easiest way to handle associative array in c#?
- What does the M stand for in C# Decimal literal notation?
- Iif equivalent in C#
- Convert an array to string
- is inaccessible due to its protection level