Given a DateTime representing a person’s birthday, How do I calculate their age in years? 70 70
I have been running StyleCop over some C# code, and it keeps reporting that my using directives should be inside the namespace. Is ...
-
April 10, 2022
- 0 Comments
What is the difference between decimal, float and double in .NET? When would someone use one of these? 1 18 float and double ...
-
April 10, 2022
- 0 Comments
How do I convert a string to a byte...
It is discouraged to simply catch System.Exception. Instead, only the “known” exceptions should be caught. Now, this sometimes leads to unnecessary repetitive code, ...
-
April 10, 2022
- 0 Comments
What are the correct version numbers for C#? What came out when? Why can’t I find any answers about C# 3.5? This question ...
-
April 10, 2022
- 0 Comments
How can you enumerate an enum in C#? E.g. the following code does not compile: public enum Suit { Spades, Hearts, Clubs, Diamonds ...
-
April 9, 2022
- 0 Comments
Example (note the case): string s = "Hello world!"; String s = "Hello world!"; What are the guidelines for the use of each? ...
-
April 9, 2022
- 0 Comments
There are multiple threads(a, b, c etc.) about the fact that Clear() ing items in the .NET component containers does not Dispose them(by ...
-
April 3, 2022
- 0 Comments