Skip to content

Expose TypeInfo on ParserResult<T> #201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 13, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/CommandLine/ParserResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace CommandLine
{
sealed class TypeInfo
public sealed class TypeInfo
{
private readonly Type current;
private readonly IEnumerable<Type> choices;
Expand All @@ -27,12 +27,12 @@ public IEnumerable<Type> Choices
get { return this.choices; }
}

public static TypeInfo Create(Type current)
internal static TypeInfo Create(Type current)
{
return new TypeInfo(current, Enumerable.Empty<Type>());
}

public static TypeInfo Create(Type current, IEnumerable<Type> choices)
internal static TypeInfo Create(Type current, IEnumerable<Type> choices)
{
return new TypeInfo(current, choices);
}
Expand Down Expand Up @@ -78,7 +78,7 @@ public ParserResultType Tag
get { return this.tag; }
}

internal TypeInfo TypeInfo
public TypeInfo TypeInfo
{
get { return typeInfo; }
}
Expand Down Expand Up @@ -216,4 +216,4 @@ public bool Equals(NotParsed<T> other)
&& Errors.SequenceEqual(other.Errors);
}
}
}
}