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

About dynamic #1073

Closed
escms opened this issue Feb 25, 2018 · 1 comment
Closed

About dynamic #1073

escms opened this issue Feb 25, 2018 · 1 comment

Comments

@escms
Copy link

escms commented Feb 25, 2018

MVC Source Code:
base.ViewBag.Url = url;
because
base.ViewBag is dynamic type,
so ,expect
((dynamic) base.ViewBag).Url = url;

ilspy:

if (UserCenterController.o__SiteContainer6.<>p__Site7 == null) { UserCenterController.o__SiteContainer6.<>p__Site7 = CallSite<Func<CallSite, object, string, object>>.Create(Binder.SetMember(CSharpBinderFlags.None, "Url", typeof(UserCenterController), new CSharpArgumentInfo[] { CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, null), CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.UseCompileTimeType, null) })); } UserCenterController.o__SiteContainer6.<>p__Site7.Target(UserCenterController.o__SiteContainer6.<>p__Site7, base.ViewBag, arg);

JustDecompile is support the decompile dynamic Type code ,This is very common in the MVC project. Do you have any plans

@siegfriedpammer
Copy link
Member

siegfriedpammer commented Feb 25, 2018

See #829 and #154...

Unless it is contributed by someone, it will not be added to ILSpy due to limited resources. JetBrains is a big company, we are three developers. Contributions are very welcome!

If anyone wants to implement it, feel free to ask questions in our gitter channel.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants