What is the best way to convert a string variable to another variable of type int? , that is, nullable of int ? Performance is very important in this case because I will be converting multiple values into a loop.
Wou...
What is the purpose of the => operator in the use of List<T> lists, I'm starting to use generic lists and I came across this operator, it is only used in this method LISTA.ForEach(i => Console.WriteLine(i)); ?
Below...
I have installed Resharper and in this section x.Id.ToString() it suggests changing to x.Id.ToString(CultureInfo.InvariantCulture) .
What is CultureInfo.InvariantCulture and why is it better?
What do I get the best performance to get the value of a data in a list? Do foreach or lambda (when possible, of course)? I can have this:
foreach(var i in lista)
{
var teste = i.NmCampo;
}
Or this:
var teste = lista.Select(campo...
I'm doing a small program that does search within a vector. The problem I am having is that if it finds the name it gives a message saying it was found but then it gives another message saying that it was not found, the code I am creating is thi...
I have a slow query in Oracle to list all accesses for a user, so I thought of writing the result to a Session , the average of records returned is 600, with%?
Would you have any other better way to save this data?