ExtensionMethods

What are extension methods?

Extensions methods can be applied to a specific data type. They are methods which can be called on this specific type.

For Example:

string blub = "Hello World";

if(blub.IsNotNullOrEmpty)
{
    Console.WriteLine("The method returned true");
}