コード例 #1
0
 private void BuildAttributes_CustomChoices()
 {
     if (oChoices != null)
     {
         CustomChoices.CustomChoicesAttributeList list = new CustomChoices.CustomChoicesAttributeList(oChoices.Items);
         ArrayList   attrs = new ArrayList();
         Attribute[] attrArray;
         attrs.Add(list);
         attrArray         = (System.Attribute[])attrs.ToArray(typeof(Attribute));
         oCustomAttributes = new AttributeCollection(attrArray);
     }
 }
コード例 #2
0
 private void BuildAttributes_CustomChoices()
 {
     if (oChoices != null)
     {
         CustomChoices.CustomChoicesAttributeList list = new CustomChoices.CustomChoicesAttributeList(oChoices.Items);
         ArrayList attrs = new ArrayList();
         Attribute[] attrArray;
         attrs.Add(list);
         attrArray =  (System.Attribute[]) attrs.ToArray(typeof(Attribute));
         oCustomAttributes = new AttributeCollection(attrArray);
     }
 }