Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public sealed class ParseResult<T>
- {
- public T Argument { get; private set; }
- public List<FailedParameter> InvalidParameter { get; private set; }
- public bool IsInvalidArgument { get { return this.InvalidParameter.Any(); } }
- public ParseResult()
- {
- this.InvalidParameter = new List<FailedParameter>();
- this.Argument = default(T);
- }
- public ParseResult(T argument)
- :this()
- {
- if (argument == null)
- throw new ArgumentNullException("The argument must not be null");
- this.Argument = argument;
- }
- internal void AddArgument(T argument)
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement