Пример #1
0
 public ArgumentInfo(PropertyInfo propInfo, ArgumentClassAttribute attribute)
 {
     PropertyInfo   = propInfo;
     Attribute      = propInfo?.GetCustomAttribute <ArgumentAttribute>();
     m_switchPrefix = attribute?.Switch;
     m_valuePrefix  = attribute?.Value;
 }
Пример #2
0
 public Parser()
 {
     m_attribute = typeof(T).GetAttributes <ArgumentClassAttribute>()?.FirstOrDefault()
                   ?? new ArgumentClassAttribute();
 }