Category: C#

C# is a powerful, object-oriented programming language used to build Windows applications, web apps, games, and mobile apps.

1 2 3 4 30 / 33 POSTS
Difference between String (Uppercase s) and string (lowercase s)

Difference between String (Uppercase s) and string (lowercase s)

In C#, string (lowercase s) and String (uppercase S) are actually the same thing. They are both aliases for the System.String class, which represents [...]
Create a case insensitive “Contains(string)”

Create a case insensitive “Contains(string)”

C# is a case sensitive language, and there are occasions where handling strings can be difficult, especially when it relates to casing of the string [...]
Field keyword in C#

Field keyword in C#

The field keyword in C# 13 is a handy feature, though it's currently in preview. It provides a more concise way to work with properties that require [...]
Overload Resolution Priority in C#

Overload Resolution Priority in C#

Imagine you have a method with several overloads. Sometimes, the compiler's default rules for choosing the best overload might not align with what you [...]
Convert date string to DateTime object in C#

Convert date string to DateTime object in C#

Sometimes you will have to deal with dates that come as strings, but you need to convert them to a DateTime object Let's take the following string [...]
Make text be “typed out” effect in C#

Make text be “typed out” effect in C#

We have a previous article on how to output text in a console slowly, but this article gives code to output word by word, but you might want to output [...]
Return output slowly in C#

Return output slowly in C#

There are occasions when we want to give some type of effect to the output we're returning, for example in a game or in the console to make it look li [...]
OAuth 2.0 authentication in C#

OAuth 2.0 authentication in C#

Getting an OAuth 2.0 authentication token in C# is easy to do For this you need only three parameters grant_type=client_credentials client_id [...]
How to check derived class in use

How to check derived class in use

Using a base class that's inherited into other classes, sometimes requires that we check which class is the one being used to execute some code. Th [...]
Get contents of HTML style tag in ASP.NET using C#

Get contents of HTML style tag in ASP.NET using C#

There could be sometimes the need to get the contents of the html style tag, this is a straightforward solution. The first part is to make the tag [...]
1 2 3 4 30 / 33 POSTS