public static CacheDatasetDir FromBaseObject(BaseObject baseObj)
                {
                    if (baseObj == null || baseObj.NativeObject == IntPtr.Zero)
                    {
                        return(null);
                    }
                    CacheDatasetDir obj = baseObj as  CacheDatasetDir;

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

                    return(obj);
                }
                public BaseObject Create()
                {
                    CacheDatasetDir emptyInstance = new CacheDatasetDir(CreatedWhenConstruct.CWC_NotToCreate);

                    return(emptyInstance);
                }