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

Do short-circuiting operators || and && exist for nullable booleans? The RuntimeBinder sometimes thinks so

First of all, thanks for pointing out that the spec isn’t clear on the non-dynamic nullable-bool case. I will fix that in a future version. The compiler’s behavior is the intended behavior; && and || are not supposed to work on nullable bools. The dynamic binder does not seem to implement this restriction, though. Instead, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)