[C# docs] fix file-scoped namespace not supported in C# 8 (#24793)
### Description
Changes the namespace declaration from
```C#
namespace Microsoft.ML.OnnxRuntime.CompileApi;
// Code
```
to
```C#
namespace Microsoft.ML.OnnxRuntime.CompileApi {
// Code
}
```
### Motivation and Context
file-scoped namespaces are not supported in C# 8.0, which results in an
error in our documentation publishing:
https://github.com/microsoft/onnxruntime/actions/workflows/publish-csharp-apidocs.yml