This question already has an answer here:i have following caseI have added a quickwatch in debug to some fields in my case:
When learning more about the standard event model in .NET, I found that before introducing generics in C#, the method that will handle an event is represented by this delegate type:
I've been optimising/benchmarking some code recently and came across this method:This is called from a performance critical loop elsewhere, so I naturally assumed all those typeof(...) calls were adding unnecessary overhead (a micro-optimisation, I know) and could be moved to private fields within the class. (I'm aware there are better...
Basically, I am trying to convert what appears to be an array of integer values stored in a string type.
I have written some code to allow filtering of products on our website, and I am getting a pretty bad code smell. The user can select 1-* of these filters which means I need to be specific with the WHERE clause.
I have string which contains a variable. But i need to replace the name with what i have in the db.string text = "hello $$name$$, good morning"
We are working with financial calculations. I found this post about storing money values as decimals: decimal vs double! - Which one should I use and when?
I've recently seen the following code:Basically I try to dig into new c# 8 features. One of them is NullableReferenceTypes. Actually there're a lot of articles and information about it already. E.g. this article is quite good. But I din't find any information about this new statement null! Can someone...
Ok so I have been reading up a lot and working on the best ways to use async methods and task, etc. I believe I'm (mostly) understanding it but I want to check to make sure.
So I have some code in VB that I am trying to convert to C#. This code was written by someone else and I am trying to understand it but with some difficulty. I have some bitwise operator and enum comparison to do but keep throwing an error out: