HomePosts tagged โ€œC# tips and Tricksโ€

C# tips and Tricks

Showing 1 - 20 of 28 results
There may be a requirement of getting the user's IP address using ASP.NET and C# or VB .NET when a...
The Local Type Inference is also called as Implicitly Types Local Variables in C# and is an easy way to...
Assume that you have a string in C# and you will need to extract the number from it, You can...
There are times when you might want to find out what is the last day of a given month in...
This blog post will explain one of the new feature called Records that was introduced in C# 9.0. Records in...
Do you have a requirement where you would need to count the number of words in a string in C#...
This blog post will explain how you can use the TrimStart function in C# to remove leading zeros from a...
Hereโ€™s the list of some of the possible ways of array initializations in C# C# Tips and Tricks #21 โ€“...
Do you want to get assembly version or assembly file version in your C# code?. This blog post exactly explains...
Hereโ€™s a quick one. Its rather a simple tip demonstrating how to repeat a character X times in C#. How...
There are occassions where you might have to convert or encode a string to base64 and vice versa in C#....
If you are using Dictionary and wondering how to sort it based on the value , you can pretty much...
In this C# tips and tricks blog post , we look at how to use String.Format function to display the...
In one of my previous blog posts , we looked at converting c# object to Json string using the Newtonsoft.Json...
You can easily convert the C# object to JSON string by using the Newtonsoft.Json NuGet package which is one of...
Assume that you have a List of string and you wish you to get the items of the list into...
If you are using Reflection and you wish you get property value using Reflection (string in this example) using C#,...
There are times when the developers would encounter scenarios where they need to generate a random alphanumeric string to be...
C# multiline string literal (@) is one of the feature which allows the c# developers to use @ symbol in...
Although not a good practise , cometime you might want to hide a specific warning of your C# code. For...

Categories

Archives