public static MapSet FromBaseObject(BaseObject baseObj) { if (baseObj == null || baseObj.NativeObject == IntPtr.Zero) { return(null); } MapSet obj = baseObj as MapSet; if (object.Equals(obj, null)) { obj = new MapSet(CreatedWhenConstruct.CWC_NotToCreate); obj.BindNativeObject(baseObj.NativeObject, "CMapSet"); obj.IncreaseCast(); } return(obj); }