public ColumnPropertyDescriptor(string propertyName, string displayName, Type propertyType, PivotColumnType pivotColumnType, string sourcePropertyName, bool isBrowsable, string description, Attribute[] attrs) : base(propertyName, attrs) { this.propertyName = propertyName; this.displayName = displayName; this.propertyType = propertyType; this.isBrowsable = isBrowsable; this.description = description; this.pivotColumnType = pivotColumnType; this.sourcePropertyName = sourcePropertyName; foreach (Attribute attrib in attrs) { if (attrib is DisplayNameAttribute) { this.displayName = ((DisplayNameAttribute)attrib).DisplayName; } if (attrib is DescriptionAttribute) { this.description = ((DescriptionAttribute)attrib).Description; } if (attrib is BrowsableAttribute) { this.isBrowsable = ((BrowsableAttribute)attrib).Browsable; } } }
public ColumnPropertyDescriptor(string propertyName, string displayName, Type propertyType, PivotColumnType pivotColumnType, string sourcePropertyName, bool isBrowsable) : this(propertyName, displayName, propertyType, pivotColumnType, sourcePropertyName, isBrowsable, string.Empty, new Attribute[] { }) { }