Skip to content
New issue

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

[Tasks]: 有关【动态方法模板】相关功能的规划与任务细化 (意见搜集与讨论) #279

Open
4 tasks done
NMSAzulX opened this issue Apr 30, 2024 · 2 comments
Labels
phase-done 任务或计划阶段性结束. tasks This is a tasklist.

Comments

@NMSAzulX
Copy link
Collaborator

NMSAzulX commented Apr 30, 2024

📃 计划清单 (Tasklist).

基于方法内容的动态方法模板扩展

@NMSAzulX NMSAzulX added the tasks This is a tasklist. label Apr 30, 2024
@NMSAzulX
Copy link
Collaborator Author

编号 相似度 ISSUE
1 53.30% [Next]: Natasha 的 【动态方法使用率】 相关功能建议搜集

该条自动推荐信息来自于 nms-bot.

@NMSAzulX
Copy link
Collaborator Author

案例如下:

  1. 规范了参数顺序。
  2. 在构建 编译单元(WithAssemblyBuilder)方法上做了重载,开发时支持直接提示配置 ConfigLoadContext / ConfigBuilder .
            NatashaManagement.RegistDomainCreator<NatashaDomainCreator>();

            var func = "return arg1+arg2;"
                .WithAssemblyBuilder(opt=>opt.AddReferenceAndUsingCode<object>())
                .ToFunc<int, int, int>()!;

            Console.WriteLine(func(1,2));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
phase-done 任务或计划阶段性结束. tasks This is a tasklist.
Projects
Status: No status
Development

No branches or pull requests

1 participant