HomePosts tagged โ€œc# tipsโ€

c# tips

Showing 1 - 14 of 14 results
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...
If you are looking at a way to get the name of the current method in C#, hereโ€™s a quick...
Do you have a requirement where you would need to count the number of words in a string in C#...
C# Compiler Error CS0051 โ€“ Inconsistent accessibility: parameter type โ€˜typeโ€™ is less accessible than method โ€˜methodโ€™ Reason for the Error...
This post explains how you can use the split method in C# to count a stringโ€™s occurrences with-in a string....
Assume that you have a string that contains the URL and you want to get the parameters from it in...
In this C# tips & tricks post , we will look at a simple usage of LINQ in C# to...
C# Compiler Error CS0171 โ€“ Field โ€˜nameโ€™ must be fully assigned before control is returned to the caller Reason for...
C# Compiler Error Message CS0050 โ€“ Inconsistent accessibility: return type โ€˜typeโ€™ is less accessible than method โ€˜methodโ€™ Reason for the...
Thanks to one of My friend (Anil pai) , who asked me a question on how to convert a string...
In this post, letโ€™s have a look at a simple tip to find out if the current time zone is...
This blog post will explain how you can use the TrimStart function in C# to remove leading zeros from a...
C# Compiler Error Message Error CS0012 The type โ€˜type is defined in an assembly that is not referenced. You must...