Skip to content
This repository has been archived by the owner on Dec 22, 2023. It is now read-only.

Commit

Permalink
Fix custom TypeConverter detection for .Net types
Browse files Browse the repository at this point in the history
  • Loading branch information
louistakepillz committed Apr 1, 2015
1 parent 9bf1c78 commit 87f3531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArgumentParser/Arguments/Argument`1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public abstract class Argument<T> : IArgument<T>
/// <param name="defaultValue">The default value of the argument.</param>
protected Argument(Key key, TypeConverter typeConverter = null, T defaultValue = default (T))
{
this.TypeConverter = typeConverter ?? TypeDescriptor.GetConverter(typeof (T), true);
this.TypeConverter = typeConverter ?? TypeDescriptor.GetConverter(typeof (T));
this.Key = key;
this.DefaultValue = defaultValue;
}
Expand Down

0 comments on commit 87f3531

Please sign in to comment.