The question Why do you usually declare a variable with default value? addresses the issue of whether to initialize or not a variable before using it.
However this option becomes mandatory when it comes to a local variable.
A field is autom...
The var keyword allows me to declare typed variables, and allows the variables to be defined implicitly.
Example: var i = 10;
The compiler will assume that my variable i is integer type int .
So, why does not...
I need to read dbf files. I found a tutorial to read the same where the author uses these two providers. In the code I only saw differences in the connection string.
What are these providers? What's the difference between them?
My company works with development, it is a company practice for all codes to be reviewed by another person before they are approved in pull request .
Generally my codes have only a few details to change, but this time the reviewer commented...
I have a list like this:
[1,1,1,2,2,1,5,3,4,3,4]
How to generate a new list with only one value each:
[1,2,3,4,5]
The first list is List<int> second can come in any type of list.
I was studying C # and I came across a type of variable dynamic , which from what I understand, it accepts whatever value I enter. Unlike other variables, such as:
If I declare as int , I have to type a valor inteiro .
If...
I am making an application and would like to know if there is any way to get national holidays.
For example: Some Google Calendar API where I can get some XML to consume ..
I need to do the following: Pass a string and go through it and take each letter found and add with its corresponding value, type: a = 1, s = 19 and so on.
Well, I made a enum with all values of string , starting with a =...
I used this solution because when trying to render a table in a view with many records the user's browser gave Crash, I know it's a not very elegant solution but it was the only solution that came to mind. (In this view I have to load all recor...