Skip to content

Commit

Permalink
use GetValues method instead of GetNames (#4828)
Browse files Browse the repository at this point in the history
  • Loading branch information
testfirstcoder committed Mar 26, 2024
1 parent 89c22b7 commit 9641df8
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -73,9 +73,8 @@ public OpenApiToTypeScriptClientCommand Command
.ToArray();

/// <summary>Gets the list of date time types.</summary>
public TypeScriptDateTimeType[] DateTimeTypes { get; } = Enum.GetNames(typeof(TypeScriptDateTimeType))
.Select(t => (TypeScriptDateTimeType)Enum.Parse(typeof(TypeScriptDateTimeType), t))
.ToArray();
public TypeScriptDateTimeType[] DateTimeTypes { get; } =
(TypeScriptDateTimeType[])Enum.GetValues(typeof(TypeScriptDateTimeType));

/// <summary>Gets the list of null values.</summary>
public TypeScriptNullValue[] NullValues { get; } = Enum.GetNames(typeof(TypeScriptNullValue))
Expand Down

0 comments on commit 9641df8

Please sign in to comment.