public ArgumentInfo(PropertyInfo propInfo, ArgumentClassAttribute attribute) { PropertyInfo = propInfo; Attribute = propInfo?.GetCustomAttribute <ArgumentAttribute>(); m_switchPrefix = attribute?.Switch; m_valuePrefix = attribute?.Value; }
public Parser() { m_attribute = typeof(T).GetAttributes <ArgumentClassAttribute>()?.FirstOrDefault() ?? new ArgumentClassAttribute(); }