Skip to content

Commit

Permalink
Merge branch 'feature/aot' of https://github.com/phil-scott-78/spectr…
Browse files Browse the repository at this point in the history
…e.console into feature/aot
  • Loading branch information
phil-scott-78 committed Apr 5, 2024
2 parents b72b87f + 28767be commit 95fbb10
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/Cli/Demo/Verbosity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ public VerbosityConverter()

public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
{
if (value is Verbosity verbosityValue)
{
return verbosityValue;
}

if (value is string stringValue)
{
var result = _lookup.TryGetValue(stringValue, out var verbosity);
Expand Down

0 comments on commit 95fbb10

Please sign in to comment.