Skip to content

Commit 68d46c7

Browse files
authored
Merge pull request #201 from Fumblesneeze/patch-1
Expose TypeInfo on ParserResult<T>
2 parents ec0e51d + cd53563 commit 68d46c7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/CommandLine/ParserResult.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace CommandLine
88
{
9-
sealed class TypeInfo
9+
public sealed class TypeInfo
1010
{
1111
private readonly Type current;
1212
private readonly IEnumerable<Type> choices;
@@ -27,12 +27,12 @@ public IEnumerable<Type> Choices
2727
get { return this.choices; }
2828
}
2929

30-
public static TypeInfo Create(Type current)
30+
internal static TypeInfo Create(Type current)
3131
{
3232
return new TypeInfo(current, Enumerable.Empty<Type>());
3333
}
3434

35-
public static TypeInfo Create(Type current, IEnumerable<Type> choices)
35+
internal static TypeInfo Create(Type current, IEnumerable<Type> choices)
3636
{
3737
return new TypeInfo(current, choices);
3838
}
@@ -78,7 +78,7 @@ public ParserResultType Tag
7878
get { return this.tag; }
7979
}
8080

81-
internal TypeInfo TypeInfo
81+
public TypeInfo TypeInfo
8282
{
8383
get { return typeInfo; }
8484
}
@@ -216,4 +216,4 @@ public bool Equals(NotParsed<T> other)
216216
&& Errors.SequenceEqual(other.Errors);
217217
}
218218
}
219-
}
219+
}

0 commit comments

Comments
 (0)