Skip to content

Commit 3ad7ea3

Browse files
committed
fix: improve formatting for type checks in BuildMethodSignature
1 parent c305105 commit 3ad7ea3

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/DotNetApiDiff/ApiExtraction/MemberSignatureBuilder.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -653,21 +653,21 @@ private string GetTypeName(Type type)
653653
}
654654

655655
// Handle primitive types with C# keywords
656-
if (type == typeof(bool)) {return "bool";}
657-
if (type == typeof(byte)) {return "byte";}
658-
if (type == typeof(sbyte)) {return "sbyte";}
659-
if (type == typeof(char)) {return "char";}
660-
if (type == typeof(decimal)) {return "decimal";}
661-
if (type == typeof(double)) {return "double";}
662-
if (type == typeof(float)) {return "float";}
663-
if (type == typeof(int)) {return "int";}
664-
if (type == typeof(uint)) {return "uint";}
665-
if (type == typeof(long)) {return "long";}
666-
if (type == typeof(ulong)) {return "ulong";}
667-
if (type == typeof(short)) {return "short";}
668-
if (type == typeof(ushort)) {return "ushort";}
669-
if (type == typeof(string)) {return "string";}
670-
if (type == typeof(object)) {return "object";}
656+
if (type == typeof(bool)) { return "bool"; }
657+
if (type == typeof(byte)) { return "byte"; }
658+
if (type == typeof(sbyte)) { return "sbyte"; }
659+
if (type == typeof(char)) { return "char"; }
660+
if (type == typeof(decimal)) { return "decimal"; }
661+
if (type == typeof(double)) { return "double"; }
662+
if (type == typeof(float)) { return "float"; }
663+
if (type == typeof(int)) { return "int"; }
664+
if (type == typeof(uint)) { return "uint"; }
665+
if (type == typeof(long)) { return "long"; }
666+
if (type == typeof(ulong)) { return "ulong"; }
667+
if (type == typeof(short)) { return "short"; }
668+
if (type == typeof(ushort)) { return "ushort"; }
669+
if (type == typeof(string)) { return "string"; }
670+
if (type == typeof(object)) { return "object"; }
671671

672672
// Handle generic types
673673
if (type.IsGenericType)

0 commit comments

Comments
 (0)