Class PvString
String class.
Implements
Inherited Members
Namespace: eBUSDotNet
Assembly: eBUSDotNet.dll
Syntax
public class PvString : IDisposable
Constructors
View SourcePvString()
Default constructor.
Declaration
public PvString()
PvString(string)
Copy constructor.
Declaration
public PvString(string aValue)
Parameters
| Type | Name | Description |
|---|---|---|
| string | aValue | The string you want to initialize this #PvString with. |
PvString(string, uint)
Constructor.
Declaration
public PvString(string aValue, uint aN)
Parameters
| Type | Name | Description |
|---|---|---|
| string | aValue | The string you want to initialize this #PvString with. |
| uint | aN | The size to resize this #PvString with. |
Fields
View SourceswigCMemOwn
Determines who is responsible for deleting the underlying C++ object.
Declaration
protected bool swigCMemOwn
Field Value
| Type | Description |
|---|---|
| bool |
Properties
View SourceAscii
Gets the string as ASCII (8-bit characters).
Declaration
public string Ascii { get; }
Property Value
| Type | Description |
|---|---|
| string |
Length
Gets the length of the string in characters.
Declaration
public int Length { get; }
Property Value
| Type | Description |
|---|---|
| int |
Unicode
Gets the string as Unicode (wide characters).
Declaration
public string Unicode { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceAssign(string)
Assignment operator.
Declaration
public string Assign(string aValue)
Parameters
| Type | Name | Description |
|---|---|---|
| string | aValue | The string's new value. |
Returns
| Type | Description |
|---|---|
| string | This updated #PvString. |
Dispose()
Dispose.
Declaration
public void Dispose()
Dispose(bool)
Dispose
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Equals(object)
Determines whether the specified object is equal to the current PvString.
Declaration
public override bool Equals(object o)
Parameters
| Type | Name | Description |
|---|---|---|
| object | o | The object to compare with the current PvString. |
Returns
| Type | Description |
|---|---|
| bool | True if the specified object is equal to the current PvString; otherwise, false. |
Overrides
View Source~PvString()
Destructor.
Declaration
protected ~PvString()
GetHashCode()
Returns a hash code for the current PvString.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current PvString. |
Overrides
Operators
View Sourceoperator +(PvString, string)
Concatenates a PvString and a string.
Declaration
public static string operator +(PvString a, string b)
Parameters
| Type | Name | Description |
|---|---|---|
| PvString | a | The PvString. |
| string | b | The string to append. |
Returns
| Type | Description |
|---|---|
| string | The concatenated string. |
operator ==(PvString, string)
Compares a PvString to a string for equality.
Declaration
public static bool operator ==(PvString a, string b)
Parameters
| Type | Name | Description |
|---|---|---|
| PvString | a | PvString to compare. |
| string | b | String to compare against. |
Returns
| Type | Description |
|---|---|
| bool | True if the values are equal; otherwise, false. |
operator !=(PvString, string)
Compares a PvString to a string for inequality.
Declaration
public static bool operator !=(PvString a, string b)
Parameters
| Type | Name | Description |
|---|---|---|
| PvString | a | PvString to compare. |
| string | b | String to compare against. |
Returns
| Type | Description |
|---|---|
| bool | True if the values differ; otherwise, false. |