From cd5356306a28d8f01040913beb5badc6266735e7 Mon Sep 17 00:00:00 2001 From: Fumblesneeze Date: Sun, 17 Dec 2017 13:22:24 +0100 Subject: [PATCH] Expose TypeInfo on ParserResult --- src/CommandLine/ParserResult.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/CommandLine/ParserResult.cs b/src/CommandLine/ParserResult.cs index 5ec4c073..20761ada 100644 --- a/src/CommandLine/ParserResult.cs +++ b/src/CommandLine/ParserResult.cs @@ -6,7 +6,7 @@ namespace CommandLine { - sealed class TypeInfo + public sealed class TypeInfo { private readonly Type current; private readonly IEnumerable choices; @@ -27,12 +27,12 @@ public IEnumerable Choices get { return this.choices; } } - public static TypeInfo Create(Type current) + internal static TypeInfo Create(Type current) { return new TypeInfo(current, Enumerable.Empty()); } - public static TypeInfo Create(Type current, IEnumerable choices) + internal static TypeInfo Create(Type current, IEnumerable choices) { return new TypeInfo(current, choices); } @@ -78,7 +78,7 @@ public ParserResultType Tag get { return this.tag; } } - internal TypeInfo TypeInfo + public TypeInfo TypeInfo { get { return typeInfo; } } @@ -216,4 +216,4 @@ public bool Equals(NotParsed other) && Errors.SequenceEqual(other.Errors); } } -} \ No newline at end of file +}