ICompilationSyntaxTreeBuilderAddMethod - метод
Добавить метод к классу
Пространство имён: Tessa.CompilationСборка: Tessa.Server (в Tessa.Server.dll) Версия: 4.0.4
ICompilationSyntaxTreeBuilder AddMethod(
string type,
string name,
Tuple<string, string>[]? parameters = null,
string? body = null,
AccessModifier accessModifier = AccessModifier.Public,
bool isOverride = false,
bool isSealed = false,
bool isAsync = false
)
Function AddMethod (
type As String,
name As String,
Optional parameters As Tuple(Of String, String)() = Nothing,
Optional body As String = Nothing,
Optional accessModifier As AccessModifier = AccessModifier.Public,
Optional isOverride As Boolean = false,
Optional isSealed As Boolean = false,
Optional isAsync As Boolean = false
) As ICompilationSyntaxTreeBuilder
ICompilationSyntaxTreeBuilder^ AddMethod(
String^ type,
String^ name,
array<Tuple<String^, String^>^>^ parameters = nullptr,
String^ body = nullptr,
AccessModifier accessModifier = AccessModifier::Public,
bool isOverride = false,
bool isSealed = false,
bool isAsync = false
)
abstract AddMethod :
type : string *
name : string *
?parameters : Tuple<string, string>[] *
?body : string *
?accessModifier : AccessModifier *
?isOverride : bool *
?isSealed : bool *
?isAsync : bool
(* Defaults:
let _parameters = defaultArg parameters null
let _body = defaultArg body null
let _accessModifier = defaultArg accessModifier AccessModifier.Public
let _isOverride = defaultArg isOverride false
let _isSealed = defaultArg isSealed false
let _isAsync = defaultArg isAsync false
*)
-> ICompilationSyntaxTreeBuilder
- type String
- name String
- parameters TupleString, String (Optional)
- body String (Optional)
- accessModifier AccessModifier (Optional)
- isOverride Boolean (Optional)
- isSealed Boolean (Optional)
- isAsync Boolean (Optional)
ICompilationSyntaxTreeBuilderthis