Example #1
0
        /// <summary>
        /// Creates a <see cref="PropertyEnumeration"/> list of possible values for a property
        /// </summary>
        /// <param name="propDesc">A <see cref="PropertyDescription"/> describing the property the enumeration list is required for</param>
        public PropertyEnumeration(PropertyDescription propDesc)
        {
            IntPtr pUnk = propDesc.GetEnumTypeListPointer();

            _pList = (IPropertyEnumTypeList)Marshal.GetUniqueObjectForIUnknown(pUnk);
            Marshal.Release(pUnk);
        }
Example #2
0
 internal PropertyEnumeration(IntPtr pUnk)
 {
     _pList = (IPropertyEnumTypeList)Marshal.GetUniqueObjectForIUnknown(pUnk);
 }