コード例 #1
0
ファイル: BranchAccessItem.cs プロジェクト: 15831944/Test3-1
        public PropertyDescriptorCollection GetProperties(Attribute[] attributes)
        {
            PropertyDescriptor[] newProps = new PropertyDescriptor[properties.Length];
            for (int i = 0; i < properties.Length; i++)
            {
                BranchAccessItemProperty prop = new BranchAccessItemProperty(properties[i].Name, properties[i], false, true);
                newProps[i] = new BranchAccessItemPropertyDescriptor(ref prop, attributes);
            }

            return(new PropertyDescriptorCollection(newProps));
        }
コード例 #2
0
    public PropertyDescriptorCollection GetProperties(Attribute[] attributes)
    {
      PropertyDescriptor[] newProps = new PropertyDescriptor[properties.Length];
      for (int i = 0; i < properties.Length; i++)
      {
        BranchAccessItemProperty prop = new BranchAccessItemProperty(properties[i].Name, properties[i], false, true);
        newProps[i] = new BranchAccessItemPropertyDescriptor(ref prop, attributes);
      }

      return new PropertyDescriptorCollection(newProps);
    }