Is Object Null - CSharp System

CSharp examples for System:Object

Description

Is Object Null

Demo Code



public class Main{
        public static bool IsNull<T>(this T value)
        {//from w  w w  .  ja  v a2s  .  c  o m
            return object.ReferenceEquals((object)value, (object)null);
        }
}

Related Tutorials