Initializes a new instance of the DeclareString class declaring the specified string
with the specified encoding.
Namespace: SharpAssembler.Core.InstructionsAssembly: SharpAssembler Core (in SharpAssembler Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public DeclareString( string data, Encoding encoding ) |
Visual Basic |
---|
Public Sub New ( _ data As String, _ encoding As Encoding _ ) |
Visual C++ |
---|
public: DeclareString( String^ data, Encoding^ encoding ) |
Parameters
- data
- Type: System..::..String
The data.
- encoding
- Type: System.Text..::..Encoding
The encoding of the string.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | data == null |
System..::..ArgumentNullException | encoding == null |
Contracts
Requires | ||
---|---|---|
data != null
| ||
encoding != null
|