Freigeben über


CodeGenerationUtilities.GetMethodModifier(Boolean, Boolean) Method

Definition

Gets the method modifier (virtual, override, etc.) in generated code with the given parameters.

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

Parameters

isRootClass
Boolean

Whether the class containing the method is a root class.

isSealed
Boolean

Whether the class containing the method is sealed.

Returns

The correct method modifier that will be used in code generation.

Applies to