We have moved the import statements outside the namespace for generated C# SDKs to comply with .NET best practices.
What's New?
The import statements (using
directives) have been relocated outside the namespace in all generated C# SDK files.
Below is a comparison of how the imports looked before and after the update:
- Before
- After
namespace SwaggerPetstore.Standard
{
using System;
using System.Collections.Generic;
using System.Linq;
using APIMatic.Core;
using APIMatic.Core.Authentication;
using APIMatic.Core.Types;
//...
}
using System;
using System.Collections.Generic;
using System.Linq;
using APIMatic.Core;
using APIMatic.Core.Authentication;
using APIMatic.Core.Types;
namespace SwaggerPetstore.Standard
{
//...
}
This update:
- Aligns the SDK with .NET style recommendations
- Resolves potential issues related to naming conflicts between project names, model names, and namespaces