public static object GetInstance(PixelStorageSettings obj) { if (ReferenceEquals(obj, null)) { return(null); } return(obj._Instance); }
public static object GetInstance(object obj) { if (ReferenceEquals(obj, null)) { return(null); } PixelStorageSettings casted = obj as PixelStorageSettings; if (ReferenceEquals(casted, null)) { return(obj); } return(casted._Instance); }
public static object GetInstance(PixelStorageSettings obj) { if (ReferenceEquals(obj, null)) return null; return obj._Instance; }