I have a SQL query which returns only one field - an ID of type INT.
And I have to use it as integer in C# code.
Which way is faster and uses less memory?
The latter. Convert.ToInt32() is also an option.
Convert.ToInt32()