Is Object Not Null - CSharp System

CSharp examples for System:Object

Description

Is Object Not Null

Demo Code



public class Main{
        public static bool IsNotNull<T>(this T value)
        {//from w  ww .ja  v a 2  s.c  o  m
            return !object.ReferenceEquals((object)value, (object)null);
        }
}

Related Tutorials