예제 #1
0
 internal static PropertyEnumerationResult FromNative(NativeClient.IFabricPropertyEnumerationResult innerEnumeration, bool includesValue)
 {
     if (innerEnumeration == null)
     {
         return(null);
     }
     else
     {
         var result = new PropertyEnumerationResult(innerEnumeration, includesValue);
         return(result);
     }
 }
예제 #2
0
        private PropertyEnumerationResult(NativeClient.IFabricPropertyEnumerationResult innerEnumeration, bool includesValue)
        {
            this.innerEnumeration = innerEnumeration;

            uint count = this.innerEnumeration.get_PropertyCount();

            for (uint i = 0; i < count; i++)
            {
                var nativeProperty = this.innerEnumeration.GetProperty(i);
                var property       = NamedProperty.FromNative(nativeProperty, includesValue);
                this.Add(property);
            }
        }