You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since this is a dynamic object, From and To might not be properties of the Email class and can therefore not be initialized with the object initializer syntax.
The text was updated successfully, but these errors were encountered:
@pascalberger If From and To are not properties of the Email class the code will fail in the same way, will it not? The only difference is that the invocation is happening via dynamic dispatch in the first case, so CodeCracker will actually help you find an error.
The only scenario I can see this being a problem is with an ExpandoObject, or an object with similar patterns. So, in this scenario, this would raise an error where previously there was none, in a correct code. So, yes, this is a bug.
Bug
CC0008 currently suggests to use object initializer, even for dynamic objects.
Current output after fix applied (if it is a code fix bug):
Since this is a dynamic object,
From
andTo
might not be properties of theEmail
class and can therefore not be initialized with the object initializer syntax.The text was updated successfully, but these errors were encountered: