public static bool IsEqual(this SingleModel sm, SingleModel Compare) { if (sm.IsNull()) { return(false); } if (Compare.IsNull()) { return(false); } if (sm.GetModelObject == Compare.GetModelObject) { return(true); } return(false); }
public static bool IsNull(this SingleModel sm) => sm == null;