Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/290.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/jpa/2.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#_Interface - Fatal编程技术网

C# 对混合界面结果进行分类

C# 对混合界面结果进行分类,c#,interface,C#,Interface,我有一个界面: public inteface IMethods { // More than 200 signatures go here } public interface IParams { // Only 5 - 10 signatures go here } public interface IFunctionality : IMethods, IParams 上述两个接口正在合并为一个更广泛的接口: public inteface IMethods { /

我有一个界面:

public inteface IMethods
{
   // More than 200 signatures go here
}


public interface IParams
{
   // Only 5 - 10 signatures go here
}
public interface IFunctionality : IMethods, IParams
上述两个接口正在合并为一个更广泛的接口:

public inteface IMethods
{
   // More than 200 signatures go here
}


public interface IParams
{
   // Only 5 - 10 signatures go here
}
public interface IFunctionality : IMethods, IParams
一切正常,但这里有一个棘手的部分:我想在调用
IFunctionality
接口时接收这样的分类:

IFunctionality.MethodM1
IFunctionality.MethodM2
...
IFunctionality.MethodM200
IFunctionality.Params.MethodP1
IFunctionality.Params.MethodP2
...
IFunctionality.Params.MethodP10
请注意
iParms
界面的上述曝光中的
Params


有没有办法做到这一点?我没有尝试任何东西,因为我似乎不知道如何实现这一点。

最接近的方法是将属性类型声明为
iparms
称为
Params

public interface IFunctionality : IMethods
{
    IParams Params { get; }
}