I created an extension method for generating string from System.Guid
like this.
public static class Fnk
{
public static string Guid(bool dash = true)
{
return dash ? System.Guid.NewGuid().ToString() : System.Guid.NewGuid().ToString("N");
}
}
I am using it like Fnk.Guid()
. I wonder that, is it possible to call it like string.Guid()
? If yes, how?