/// <summary>
 /// Parse the PermissionData structure.
 /// </summary>
 /// <param name="s">An stream containing PermissionData structure.</param>
 public override void Parse(Stream s)
 {
     base.Parse(s);
     this.PermissionDataFlags = (PermissionDataFlags)ReadByte();
     this.PropertyValueCount = ReadUshort();
     List<TaggedPropertyValue> listPropertyValues = new List<TaggedPropertyValue>();
     for (int i = 0; i < PropertyValueCount; i++)
     {
         TaggedPropertyValue tempPropertyValue = new TaggedPropertyValue();
         tempPropertyValue.Parse(s);
         listPropertyValues.Add(tempPropertyValue);
     }
     this.PropertyValues = listPropertyValues.ToArray();
 }
Пример #2
0
        /// <summary>
        /// Parse the PermissionData structure.
        /// </summary>
        /// <param name="s">An stream containing PermissionData structure.</param>
        public override void Parse(Stream s)
        {
            base.Parse(s);
            this.PermissionDataFlags = (PermissionDataFlags)ReadByte();
            this.PropertyValueCount  = ReadUshort();
            List <TaggedPropertyValue> listPropertyValues = new List <TaggedPropertyValue>();

            for (int i = 0; i < PropertyValueCount; i++)
            {
                TaggedPropertyValue tempPropertyValue = new TaggedPropertyValue();
                tempPropertyValue.Parse(s);
                listPropertyValues.Add(tempPropertyValue);
            }
            this.PropertyValues = listPropertyValues.ToArray();
        }