Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 确定类型实现的接口_C#_.net_Inheritance_Interface - Fatal编程技术网

C# 确定类型实现的接口

C# 确定类型实现的接口,c#,.net,inheritance,interface,C#,.net,Inheritance,Interface,快一点。。。如何确定类型实现的接口 干杯 Anthony您可以调用GetInterfaces方法 Type[] interfaceTypes = myType.GetInterfaces(); :) Type.GetInterfaces()

快一点。。。如何确定类型实现的接口

干杯
Anthony

您可以调用
GetInterfaces
方法

Type[] interfaceTypes = myType.GetInterfaces();
:)

Type.GetInterfaces()