S
shapper
Hello,
Is there a difference between using:
controller = ObjectFactory.GetInstance(controllerType) as
IController;
Or
controller = (IController)ObjectFactory.GetInstance(controllerType);
I see the first one with a VB similar sintax and the second one as C#.
But C# accepts both ...
How should I use it?
Thank You,
Miguel
Is there a difference between using:
controller = ObjectFactory.GetInstance(controllerType) as
IController;
Or
controller = (IController)ObjectFactory.GetInstance(controllerType);
I see the first one with a VB similar sintax and the second one as C#.
But C# accepts both ...
How should I use it?
Thank You,
Miguel