While trying to learn Unity, I keep seeing the following code for overriding GetControllerInstance in MVC:
GetControllerInstance
if(!typeof(IController).IsAssignableF
typeof(IController).IsAssignableFrom(controllerType) tests a Type against the interface. The is operator tests an instance against the interface.
typeof(IController).IsAssignableFrom(controllerType)
Type
is