© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•16mo ago•
72 replies
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
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

Invoke explicitly implemented static interface method
C#CC# / help
12mo ago
Calling a static abstract method without a generic type [Answered]
C#CC# / help
4y ago
Static Members of an Interface
C#CC# / help
7mo ago
❔ Static interface methods
C#CC# / help
3y ago