We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
partial
你们的SDK里有很多上万行的大文件,建议进行拆分。 .Net从很久以前就支持partial关键字,把一个class拆到多个文件里。
比如.Net Runtime的TimeZone类,就拆分了很多文件。
TimeZone
具体到你们sdk里,比如:
https://github.com/aliyun/alibabacloud-csharp-sdk/blob/master/ecs-20140526/core/Client.cs
这个文件3.xMiB,6万多行。 可以改成partial class,按功能拆成Client.Feature1.cs、Client.Feature2.cs,增加可维护性。
Client.Feature1.cs
Client.Feature2.cs
The text was updated successfully, but these errors were encountered:
它们这些代码应该是根据api自动生成的,所以基本都在一个文件里。
Sorry, something went wrong.
肯定是脚本生成的,生成器也可以拆分输出结果的。方便别人看。 隔壁友商也是生成的。
No branches or pull requests
你们的SDK里有很多上万行的大文件,建议进行拆分。
.Net从很久以前就支持
partial
关键字,把一个class拆到多个文件里。比如.Net Runtime的
TimeZone
类,就拆分了很多文件。具体到你们sdk里,比如:
这个文件3.xMiB,6万多行。
可以改成partial class,按功能拆成
Client.Feature1.cs
、Client.Feature2.cs
,增加可维护性。The text was updated successfully, but these errors were encountered: