Share via


CodeGenerationUtilities.GetMethodModifier Method

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

Namespace:  Microsoft.VisualStudio.Modeling.DslDefinition
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.11.0.dll)

Syntax

'Declaration
Public Shared Function GetMethodModifier ( _
    isRootClass As Boolean, _
    isSealed As Boolean _
) As String
public static string GetMethodModifier(
    bool isRootClass,
    bool isSealed
)
public:
static String^ GetMethodModifier(
    bool isRootClass, 
    bool isSealed
)
static member GetMethodModifier : 
        isRootClass:bool * 
        isSealed:bool -> string
public static function GetMethodModifier(
    isRootClass : boolean, 
    isSealed : boolean
) : String

Parameters

  • isRootClass
    Type: Boolean

    Whether the class containing the method is a root class.

  • isSealed
    Type: Boolean

    Whether the class containing the method is sealed.

Return Value

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

.NET Framework Security

See Also

Reference

CodeGenerationUtilities Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace