Use the DeploymentSection Retail Property to Deploy ASP.NET Apps
We sometimes forget to turn debug to false or turn off tracing. You only need to set the following configuration in the machine.config file in the web server. It will
We sometimes forget to turn debug to false or turn off tracing. You only need to set the following configuration in the machine.config file in the web server. It will
To join the objects in a collection, such as a string array, with a common delimiter like a comma or another character, is quite easy with the string.join method. See
We often do String.ToUpper()?on two strings to compare them. This introduces additional overhead on string allocation. It is better to use OrdinalIgnoreCase?instead, as shown below: bool CompareResult = firstString.Equals(secondString, StringComparison.OrdinalIgnoreCase);
Did you know you can chain null comparisons to any level on an object with ?? operator? See below for an example: string inputString;//set some value.var multiEvaluationResult = inputString?? secondaryString
If you want to let your web application restart your application pool, all you have to do is write a file to the IIS websites folder, which is typically c:inetpubwwwroot.
Have you felt a need for enums to have composite values? They can be defined internally within the enum as below: Public enum livingObjects {Humans,Animals,Plants,All = Humans | Animals |
Write a test method around the block of code that you want to test as an independent piece. Then, compile the code. Just open the test explorer window and right
Protocol Buffers are considered to be one of the fastest serializer and deserializer and respond with a lightweight response. You can implement this on the ASP.Net WebAPIs using the Web
Queries like the one below will perform more slowly than they could be run on a varchar column. Explicitly marking them as such will improve the performance of EF queries