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