CompilationSyntaxTreeBuilderAddMethod - метод |
Добавить метод к классу
Пространство имён:
Tessa.Compilation
Сборка:
Tessa.Server (в Tessa.Server.dll) Версия: 3.5.0.19
Синтаксис public ICompilationSyntaxTreeBuilder AddMethod(
string type,
string methodName,
Tuple<string, string>[] parameters = null,
string body = null,
AccessModifier accessModifier = AccessModifier.Public,
bool isOverride = false,
bool isSealed = false,
bool isAsync = false
)
Public Function AddMethod (
type As String,
methodName 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
public:
virtual ICompilationSyntaxTreeBuilder^ AddMethod(
String^ type,
String^ methodName,
array<Tuple<String^, String^>^>^ parameters = nullptr,
String^ body = nullptr,
AccessModifier accessModifier = AccessModifier::Public,
bool isOverride = false,
bool isSealed = false,
bool isAsync = false
) sealed
abstract AddMethod :
type : string *
methodName : 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
override AddMethod :
type : string *
methodName : 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
- methodName
- Тип: SystemString
- parameters (Optional)
- Тип: SystemTupleString, String
- body (Optional)
- Тип: SystemString
- accessModifier (Optional)
- Тип: Tessa.CompilationAccessModifier
- isOverride (Optional)
- Тип: SystemBoolean
- isSealed (Optional)
- Тип: SystemBoolean
- isAsync (Optional)
- Тип: SystemBoolean
Возвращаемое значение
Тип:
ICompilationSyntaxTreeBuilderthis
Реализации
ICompilationSyntaxTreeBuilderAddMethod(String, String, TupleString, String, String, AccessModifier, Boolean, Boolean, Boolean)См. также