ToNull
Turns any object to null
Source
public static object ToNull(this object o)
{
return null;
}
Example
object o = new object();
o.ToNull();
ExtensionMethod.NET Home of 880 C#, Visual Basic, F# and Javascript extension methods
Turns any object to null
public static object ToNull(this object o)
{
return null;
}
object o = new object();
o.ToNull();