CodeGenerationUtilities.GetMethodModifier(Boolean, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.