Microsoft.Protocols.TestSuites.MS_OXORULE.AdapterHelper.ParsePropertyRow_r C# (CSharp) Method

ParsePropertyRow_r() public static method

Parse the PropertyRow_r structure.
public static ParsePropertyRow_r ( AddressBookPropValueList row ) : PropertyRow_r
row AddressBookPropValueList The row which contains property tags and property values
return PropertyRow_r
        public static PropertyRow_r ParsePropertyRow_r(AddressBookPropValueList row)
        {
            PropertyRow_r propertyRow_r = new PropertyRow_r();
            propertyRow_r.Reserved = 0;
            propertyRow_r.Values = row.PropertyValueCount;
            propertyRow_r.Props = new PropertyValue_r[row.PropertyValueCount];
            for (int i = 0; i < row.PropertyValueCount; i++)
            {
                propertyRow_r.Props[i].PropTag = BitConverter.ToUInt32(row.PropertyValues[i].PropertyTag.Serialize(), 0);
                propertyRow_r.Props[i].Reserved = 0;
                propertyRow_r.Props[i].Value = AdapterHelper.ParsePROP_VAL_UNION((AddressBookPropertyValue)row.PropertyValues[i], (PropertyTypeValue)row.PropertyValues[i].PropertyTag.PropertyType);
            }

            return propertyRow_r;
        }

Same methods

AdapterHelper::ParsePropertyRow_r ( IntPtr ptr ) : PropertyRow_r