コード例 #1
0
                    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);
                    }
コード例 #2
0
                    public BaseObject Create()
                    {
                        Idataaccessor emptyInstance = new Idataaccessor(CreatedWhenConstruct.CWC_NotToCreate);

                        return(emptyInstance);
                    }