ICompilationSyntaxTreeBuilderAddMethod - метод |
Добавить метод к классу
Пространство имён:
Tessa.Compilation
Сборка:
Tessa.Server (в Tessa.Server.dll) Версия: 3.5.0.19
Синтаксис 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
- Тип: SystemString
- name
- Тип: SystemString
- parameters (Optional)
- Тип: SystemTupleString, String
- body (Optional)
- Тип: SystemString
- accessModifier (Optional)
- Тип: Tessa.CompilationAccessModifier
- isOverride (Optional)
- Тип: SystemBoolean
- isSealed (Optional)
- Тип: SystemBoolean
- isAsync (Optional)
- Тип: SystemBoolean
Возвращаемое значение
Тип:
ICompilationSyntaxTreeBuilderthis
См. также