private static void PollProperty(PropertyInfo property) { object[] attributes = property.GetCustomAttributes(typeof(EG_Debug.PropertyAttribute), true); for (int i = 0; i < attributes.Length; i++) { EG_Debug.PropertyAttribute attribute = (EG_Debug.PropertyAttribute)attributes[i]; CreateNewPropertyEntry(attribute, property); } }
private static void CreateNewPropertyEntry(EG_Debug.PropertyAttribute attribute, PropertyInfo property) { PropertyAttributeEntry entry = new PropertyAttributeEntry() { Attribute = attribute, Property = property, }; entry.AssignDefaultValue(); _attributes.Add(entry); }