diff --git a/src/Kiota.Builder/Writers/CSharp/TypeDefinitionExtensions.cs b/src/Kiota.Builder/Writers/CSharp/TypeDefinitionExtensions.cs index b96d8270db..c6ef2fac85 100644 --- a/src/Kiota.Builder/Writers/CSharp/TypeDefinitionExtensions.cs +++ b/src/Kiota.Builder/Writers/CSharp/TypeDefinitionExtensions.cs @@ -26,17 +26,17 @@ private static StringBuilder AppendTypeName(ITypeDefinition typeDefinition, Stri case null: return fullNameBuilder; case ITypeDefinition parentTypeDefinition: - { - fullNameBuilder.Insert(0, '.'); - return AppendTypeName(parentTypeDefinition, fullNameBuilder); - } + { + fullNameBuilder.Insert(0, '.'); + return AppendTypeName(parentTypeDefinition, fullNameBuilder); + } case CodeNamespace codeNamespace: - { - if (!string.IsNullOrEmpty(codeNamespace.Name)) - fullNameBuilder.Insert(0, $"{codeNamespace.Name}."); + { + if (!string.IsNullOrEmpty(codeNamespace.Name)) + fullNameBuilder.Insert(0, $"{codeNamespace.Name}."); - return fullNameBuilder; - } + return fullNameBuilder; + } default: throw new InvalidOperationException($"Type {typeDefinition.Name} contains an invalid parent of type {typeDefinition.Parent.GetType().FullName}."); }