Category: C#

How to Convert a Character to Upper Case in C# using Char.ToUpper ?

The Char class provides the method ToUpper which will convert the any given character to its corresponding upper case character from lower case character. The Char.ToUpper accepts the character as parameter and returns the char with the Upper Case . How to Convert a Character to Upper Case in C# using Char.ToUpper ? Below is a sample sourcecode demonstrating How to Convert a Character to…

C# Compiler Error – CS1662 cannot convert {0} to intended delegate

In this blog post, you’ll learn more about the C# Compiler Error – CS1662 and the related message description C# Compiler Error Code CS1662 C# Compiler Description for the Code :CS1662 Cannot convert {0} to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type

What is the best data type for Currency in C#?

If you are looking at finding out what could be the best data type for currency in C# ?, this post will provide a quick tip or insights on the same. What is the best data type for Currency in C#? Use decimal for any currency or money values. The decimal keyword indicates a 128-bit data type. Compared to floating-point types, the decimal type has…