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

Accept the issue from AspectCore-Framework (#145). #7

Closed
NMSAzulX opened this issue Jun 25, 2019 · 1 comment
Closed

Accept the issue from AspectCore-Framework (#145). #7

NMSAzulX opened this issue Jun 25, 2019 · 1 comment

Comments

@NMSAzulX
Copy link
Collaborator

标题

    提议:是否可以将动态类型创建开放单独的接口?

内容

有些场景下我们需要动态的创建一个混合类型,大概如下
1、

   DynamicMixin((a,b,c)=>new {a.id,b.name,c.d.nn,int xxx=3,Method1=Func<xxx>});

2、可以通过某种{名称,类型}集合创建一个动态类

提出人

    myfp

链接

    dotnetcore/AspectCore-Framework#145 (comment)

@NMSAzulX
Copy link
Collaborator Author

NMSAzulX commented Jun 25, 2019

@myFP

针对您的问题:Natasha在UT测试中或许有您需要的内容,例如:字符串构建类强类型动态调用类构建器

注意:如果没有约束(即抽象类、接口等),那么动态生成的只能由动态调用。 Runtime的匿名类不属于运行时生成,而是编译时生成,老铁可以斟酌一下场景,咱们继续深入讨论。

@NMSAzulX NMSAzulX added this to Low priority in Hot Update Jun 25, 2019
@NMSAzulX NMSAzulX added this to To do in Hot Update Jun 25, 2019
@NMSAzulX NMSAzulX moved this from To do to Requirements discussion in Hot Update Jun 25, 2019
@NMSAzulX NMSAzulX moved this from Requirements discussion to Done in Hot Update Jun 25, 2019
@NMSAzulX NMSAzulX removed this from Done in Hot Update Jun 25, 2019
@NMSAzulX NMSAzulX added this to Requirements discussion in Type Builder Jun 25, 2019
Type Builder automation moved this from Requirements discussion to Done Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Type Builder
  
Done
Development

No branches or pull requests

1 participant