C#C
C#14mo ago
Nanior

Calling static method of interface via it's type

There's an interface called ISerializer.
ISerializer implements two static methods called Serialize and Deserialize.

There's a class that implements ISerializer called ArraySerializer.
ArraySerializer is requires an generic type parameter of type ISerializer...

The ArraySerializer needs to call the Serialize/Deserialize method of the generic type parameter
Was this page helpful?