Posts by Vinicius Fernandes • 1,727 points
61 posts
-
7
votes2
answers2134
viewsQ: Which loop is faster for or foreach in C#?
I’ve read articles from some programming languages that loop for is faster than the foreach, and wanted to know if C# has performance differences?
-
6
votes3
answers459
viewsQ: Does C# have a class for handling properties files?
In C# has some class for handling files properties? In Java I use the class Properties, I was wondering if you have a C equivalent#?…
-
3
votes3
answers19255
viewsA: What is the difference between while, for, while and foreach?
They all really have the same functionality with minor differences. While: Runs the loop while the condition is true. // Contar de 1 até 10 $contar = 1; while($contar <= 10){ echo "$contar";…
-
0
votes1
answer6742
viewsQ: Is there any way to generate a random number between two numbers in Java?
How do you generate a random number in the specific java between min and max? Because with the nextInt function of the Random class you can only specify max.
-
2
votes1
answer310
viewsQ: Is there a way to call a C function in C#?
Let’s say I have a library with a C function, which was compiled using gcc, there is how to call this function in C#, if yes what would be the performance of it compared to the same function created…
-
0
votes1
answer749
viewsQ: How to create loop thread in c#?
How do I create a thread that runs a function, wait 1 second and loop again until the program shuts down?
-
13
votes2
answers864
viewsQ: Differences between Jagged Array and Multidimensional Array in c#?
There is difference in these arrays in c#? int[][][] int[,,] As far as I can see, it’s the same thing, but c# can’t cast from one to the other.
-
10
votes2
answers229
viewsQ: Can try catch be replaced by using?
I always used the blocks try, catch and finally when programming in Java, and when I switched to C# I noticed that some codes exchange the try/catch for using. Example: using (FileStream fs = new…
-
4
votes1
answer571
viewsQ: Is there a difference between C++ from GCC and C++ from Visual Studio?
I already programmed in C++ compiling with GCC and when I started using Visual Studio I noticed that it has support for C++, but the implementation is aimed at the platform . Net. There is a…
-
4
votes2
answers882
viewsQ: What is the importance of using java interfaces or c#?
I know how to implement and use interfaces, but I can’t understand what the real reason for them is in c# or java, since once you extend your class to an interface you need to implement all the…
-
3
votes1
answer288
viewsQ: How to make a foreach loop with limit in c#?
How can I make a limit foreach loop, for example I have a dictionary with 100 items and I want to make a loop of item 20 until 50 as I can do this in c#.