CodeGenerationUtilities.GetMethodModifier(Boolean, Boolean) 方法

定义

获取具有给定参数的生成代码中 ) 的方法修饰符 (虚、重写等。

public:
 static System::String ^ GetMethodModifier(bool isRootClass, bool isSealed);
public static string GetMethodModifier (bool isRootClass, bool isSealed);
static member GetMethodModifier : bool * bool -> string
Public Shared Function GetMethodModifier (isRootClass As Boolean, isSealed As Boolean) As String

参数

isRootClass
Boolean

包含方法的类是否是根类。

isSealed
Boolean

包含方法的类是否是密封的。

返回

String

将在代码生成中使用的正确方法修饰符。

适用于