Dynamic parameter causes compiler to think method return is dynamic
Yes, dynamic stops the compiler from knowing the type on any parameters, properties, or method return types. Add an explicit cast like: (MethodResult)IsValid(someObject)); The reason here is that once you enter the dynamic world in C# you are going into late binding. The compiler can’t verify this code because it can no longer use any … Read more