Esempio n. 1
0
                public static Directory FromBaseObject(BaseObject baseObj)
                {
                    if (baseObj == null || baseObj.NativeObject == IntPtr.Zero)
                    {
                        return(null);
                    }
                    Directory obj = baseObj as  Directory;

                    if (object.Equals(obj, null))
                    {
                        obj = new Directory(CreatedWhenConstruct.CWC_NotToCreate);
                        obj.BindNativeObject(baseObj.NativeObject, "CDirectory");
                        obj.IncreaseCast();
                    }

                    return(obj);
                }