/// <summary> /// Initializes a new instance of the <see cref="T:ObjProperty"/> class. /// </summary> /// <param name="property">The propertyInfo object that will reflect on objects later on to display information with</param> /// <param name="propertyIndex">An array of index parameters if the property parameter represents an indexex property</param> /// <param name="nested">If the information required resides in a property's property, this parameter represents that information</param> public ObjProperty(PropertyInfo property, object[] propertyIndex, ObjProperty nested) { this.property = property; this.nested = nested; this.propertyIndex = propertyIndex; if (property != null) { object[] attr = property.GetCustomAttributes(typeof(EditStrAttribute), true); if (attr != null && attr.Length > 0) { editType = ((EditStrAttribute)attr[0]).EditType; } } }
/// <summary> /// Initializes a new instance of the <see cref="T:ObjProperty"/> class. /// </summary> /// <param name="property">The propertyInfo object that will reflect on objects later on to display information with</param> /// <param name="propertyIndex">An array of index parameters if the property parameter represents an indexex property</param> /// <param name="nested">If the information required resides in a property's property, this parameter represents that information</param> public ObjProperty(PropertyInfo property,object[] propertyIndex, ObjProperty nested) { this.property=property; this.nested=nested; this.propertyIndex=propertyIndex; if(property!=null) { object[] attr = property.GetCustomAttributes(typeof(EditStrAttribute),true); if(attr!=null && attr.Length>0) { editType = ((EditStrAttribute)attr[0]).EditType; } } }
/// <summary> /// Initializes a new instance of the <see cref="T:EditStrAttribute"/> class. /// </summary> /// <param name="editType">Type of the edit.</param> public EditStrAttribute(EditStrType editType) { this.editType = editType; }
/// <summary> /// Initializes a new instance of the <see cref="T:EditStrAttribute"/> class. /// </summary> /// <param name="editType">Type of the edit.</param> public EditStrAttribute(EditStrType editType) { this.editType=editType; }