vdhant
vdhant

Reputation: 2222

Determine what interfaces a type implements

Just a quick one... How do I determine what interfaces a type implements?

Cheers Anthony

Upvotes: 0

Views: 193

Answers (3)

cwap
cwap

Reputation: 11287

Type.GetInterfaces()

:)

Upvotes: 1

Razzie
Razzie

Reputation: 31232

You can call the GetInterfaces method.

Type[] interfaceTypes = myType.GetInterfaces();

Upvotes: 3

Greg Beech
Greg Beech

Reputation: 136727

Type.GetInterfaces

Upvotes: 4

Related Questions