using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace DevelopStuff.Extensions { public static class ObjectMethods { /// /// Determines whether the specified object is null. /// /// The object. /// /// true if the specified object is null; otherwise, false. /// public static bool IsNull(this object obj) { return obj == null; } /// /// Determines whether the specified object is not null. /// /// The object. /// /// true if the specified object is not null; otherwise, false. /// public static bool IsNotNull(this object obj) { return !IsNull(obj); } } }