private ArgumentInfo( AppSettings settings, ICustomAttributeProvider attributeProvider, string propertyOrArgumentName, Type type, object defaultValue) { Settings = settings; AttributeProvider = attributeProvider; PropertyOrArgumentName = propertyOrArgumentName; Type = type; DefaultValue = defaultValue; IsMultipleType = GetIsMultipleType(); UnderlyingType = GetUnderlyingType(Type); _typeDescriptor = Settings.ArgumentTypeDescriptors .GetDescriptorOrThrow(UnderlyingType); }
public ListParser(Type type, Type underlyingType, IArgumentTypeDescriptor argumentTypeDescriptor) { _type = type; _underlyingType = underlyingType; _argumentTypeDescriptor = argumentTypeDescriptor; }
public ErrorReportingDescriptor(IArgumentTypeDescriptor innerDescriptor) { _innerDescriptor = innerDescriptor; }
/// <summary>Registers your customer descriptor</summary> public void Add(IArgumentTypeDescriptor argumentTypeDescriptor) { _customDescriptors.Add(new ErrorReportingDescriptor(argumentTypeDescriptor)); }
public SingleValueParser(IArgumentTypeDescriptor argumentTypeDescriptor) { _argumentTypeDescriptor = argumentTypeDescriptor; }
public void Add(IArgumentTypeDescriptor argumentTypeDescriptor) { _customDescriptors.Add(argumentTypeDescriptor); }