internal static PropertyEnumerationResult FromNative(NativeClient.IFabricPropertyEnumerationResult innerEnumeration, bool includesValue) { if (innerEnumeration == null) { return(null); } else { var result = new PropertyEnumerationResult(innerEnumeration, includesValue); return(result); } }
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); } }