Saturday, December 26, 2015

What is dynamic?

You use the @dynamic keyword to tell the compiler that you will fulfil the API contract implied by a property either by providing method implementations directly or at runtime using other mechanisms such as dynamic loading of code or dynamic method resolution. It suppresses the warnings that the compiler would otherwise generate if it can’t find suitable implementations. You should use it only if you know that the methods will be available at runtime.