示例#1
0
 public virtual AttributeTypeAndValue[] ToAttributeTypeAndValueArray()
 {
     AttributeTypeAndValue[] result = new AttributeTypeAndValue[content.Count];
     for (int i = 0; i != result.Length; ++i)
     {
         result[i] = AttributeTypeAndValue.GetInstance(content[i]);
     }
     return(result);
 }
示例#2
0
        public virtual AttributeTypeAndValue[] GetRegInfo()
        {
            if (regInfo == null)
            {
                return(null);
            }

            AttributeTypeAndValue[] results = new AttributeTypeAndValue[regInfo.Count];
            for (int i = 0; i != results.Length; ++i)
            {
                results[i] = AttributeTypeAndValue.GetInstance(regInfo[i]);
            }
            return(results);
        }