Exemple #1
0
    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);
        }
    }
Exemple #2
0
    private static void CreateNewPropertyEntry(EG_Debug.PropertyAttribute attribute, PropertyInfo property)
    {
        PropertyAttributeEntry entry = new PropertyAttributeEntry()
        {
            Attribute = attribute,
            Property  = property,
        };

        entry.AssignDefaultValue();

        _attributes.Add(entry);
    }