Re:How the .NET Runtime Loads a Type
by sharpercoder on Friday June 16, 2017 @12:37PM
(#14570394)
>This code wouldn't compile, for starters.
Thats the point. You need an `IValidator` interface.
Thats the point. You need an `IValidator` interface.
But it could be `IValidator<object>`, in the worst case. That being said, why not make a `class ThingValidator<T> : IValidator<T> {}`, for all the lack of detail we have?
There aren't enough details here to demonstrate the weaknesses of generics.