对StringBuilder对象的拓展,添加了操作符凭借字符串,从而能够让生成代码的操作更加的方便
ScriptBuilder
01 Syntax
Microsoft.VisualBasic.Scripting.SymbolBuilder.ScriptBuilder
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Replace | 1 | StringBuilder.Replace()) |
| ToString | 1 | Display the string text in the StringBuilder object. |
| AppendLine | 1 | Appends a copy of the specified string followed by the default line terminator to the end of the current ScriptBuilder object. |
| op_Explicit | 1 | StringBuilder.ToString() |
| op_Concatenate | 1 | StringBuilder.Append()) |
| op_Addition | 1 | StringBuilder.AppendLine() |
| Save | 1 | save value from ScriptBuilder.ToString() |
| op_Implicit | 1 |
03 Properties
04 Members
Replace(
String, String)StringBuilder.Replace()
Parameters
| Name | Type | Description |
|---|---|---|
key$ | String | - |
value$ | String | - |
ToString
Display the string text in the StringBuilder object.
AppendLine(
String)Appends a copy of the specified string followed by the default line terminator to the end of the current ScriptBuilder object.
Parameters
| Name | Type | Description |
|---|---|---|
line$ | String | The string to append. |
Returns
A reference to this instance after the append operation has completed.
op_Explicit(ScriptBuilder)
StringBuilder.ToString()
Parameters
| Name | Type | Description |
|---|---|---|
sb | ScriptBuilder | - |
op_Concatenate(ScriptBuilder,
String)StringBuilder.Append()
Parameters
| Name | Type | Description |
|---|---|---|
sb | ScriptBuilder | - |
s | String | - |
op_Addition(ScriptBuilder,
String)StringBuilder.AppendLine()
Parameters
| Name | Type | Description |
|---|---|---|
sb | ScriptBuilder | - |
s | String | - |
Save(
String, Encoding)save value from ScriptBuilder.ToString()
Parameters
| Name | Type | Description |
|---|---|---|
path | String | - |
encoding | Encoding | - |
Assign(
String)The variable in target script text should be in format like: {$name}
Parameters
| Name | Type | Description |
|---|---|---|
name | String | - |
Preview
Equals to StringBuilder.ToString()
script
op_Implicit(
String)