CompilationSyntaxTreeBuilderAddMethod - метод
Добавить метод к классу
Пространство имён: Tessa.CompilationСборка: Tessa.Server (в Tessa.Server.dll) Версия: 3.6.0.22
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 String
- methodName String
-
- parameters TupleString, String (Optional)
- body String (Optional)
- accessModifier AccessModifier (Optional)
- isOverride Boolean (Optional)
- isSealed Boolean (Optional)
- isAsync Boolean (Optional)
ICompilationSyntaxTreeBuilderthis
ICompilationSyntaxTreeBuilderAddMethod(String, String, TupleString, String, String, AccessModifier, Boolean, Boolean, Boolean)