Neophyte
How to to dynamically provide T type of a generic method
the one calling
IDataInterface.Validate<T, TError>(values)
won't know compiletime the type of TError
. Since he the specific implementation of IDataInterface is resolved only during runtime105 replies
How to to dynamically provide T type of a generic method
maybe adding
IParserFactory
instead of the specific TParser
could help.
At the end, the parser will have to do the same. Parse<T>(Stream stream)
no matter the implementation. This could reducde the number of generics needed.
Same with TConverter
105 replies