In C#, what makes a field different from a property, and when should a field be used instead of a property? 3 33
I’m getting a warning from ReSharper about a call to a virtual member from my objects constructor. Why would this be something not ...
-
April 13, 2022
- 0 Comments
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, ...
-
April 13, 2022
- 0 Comments
I have a class called Order which has properties such as OrderId, OrderDate, Quantity, and Total. I have a list of this Order ...
-
April 12, 2022
- 0 Comments
In most programming languages, dictionaries are preferred over hashtables. What are the reasons behind that? 1 19 For what it’s worth, a Dictionary ...
-
April 12, 2022
- 0 Comments
Which is the simplest way to update a Label from another Thread? I have a Form running on thread1, and from that I’m ...
-
April 12, 2022
- 0 Comments
How can you convert a byte array to a hexadecimal string, and vice versa? 5 51
When should you use struct and not class in C#? My conceptual model is that structs are used in times when the item ...
-
April 12, 2022
- 0 Comments