File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
src/Microsoft.OpenApi/Extensions Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -44,25 +44,6 @@ public static string GetDisplayName(this Enum enumValue)
44
44
return attribute == null ? enumValue . ToString ( ) : attribute . Name ;
45
45
}
46
46
47
- /// <summary>
48
- /// Gets the enum display name for <see typeparamref="T"/> without the use of reflection.
49
- /// </summary>
50
- /// <typeparam name="T">The type of the enum value.</typeparam>
51
- /// <param name="enumValue">The enum value.</param>
52
- /// <returns>The display string to use.</returns>
53
- public static string GetDisplayName < T > ( this T enumValue ) where T : Enum
54
- {
55
- return enumValue switch
56
- {
57
- ParameterStyle parameterStyle => parameterStyle . GetDisplayName ( ) ,
58
- ParameterLocation parameterLocation => parameterLocation . GetDisplayName ( ) ,
59
- ReferenceType referenceType => referenceType . GetDisplayName ( ) ,
60
- OperationType operationType => operationType . GetDisplayName ( ) ,
61
- SecuritySchemeType securitySchemeType => securitySchemeType . GetDisplayName ( ) ,
62
- _ => enumValue . ToString ( )
63
- } ;
64
- }
65
-
66
47
/// <summary>
67
48
/// Gets the enum display for name <see cref="ParameterStyle" /> without the use of reflection.
68
49
/// </summary>
You can’t perform that action at this time.
0 commit comments