4 ms·
> Dynamic JS-style code is not supported, for example adding a function or a field into an object, prototype-based class modifications etc. FYI, just in case y
by moron4hire 5mo ago
> Dynamic JS-style code is not supported, for example adding a function or a field into an object, prototype-based class modifications etc.
FYI, just in case you didn't know, there is an ExpandoObject type in the System.Dynamic namespace that you could use to do this. IDK if you want to, but it's one of those less common .NET features that people tend to not be aware of.
- jeswin 5mo agotsonic uses NativeAOT by default, and DLR/System.Dynamic isn't supported in NativeAOT. There are switches in tsonic to give you MSIL, but that's used mostly for testing or for compat reasons.
- deleted 5mo ago[deleted]