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

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

                    return(obj);
                }