Class CLTypeInfo
Extends the information of a CLType and provides conversion helpers. Used also as a base class for ByteArrays, Keys, Lists, Maps, Options, Results and Tuples.
Inheritance
CLTypeInfo
Inherited Members
Namespace: Casper.Network.SDK.Types
Assembly: Casper.Network.SDK.dll
Syntax
public class CLTypeInfo
Constructors
| Edit this page View SourceCLTypeInfo(CLType)
Declaration
public CLTypeInfo(CLType type)
Parameters
| Type | Name | Description |
|---|---|---|
| CLType | type |
Properties
| Edit this page View SourceType
Declaration
public CLType Type { get; }
Property Value
| Type | Description |
|---|---|
| CLType |
Methods
| Edit this page View SourceEquals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
| Edit this page View SourceGetFrameworkType()
Declaration
public virtual Type GetFrameworkType()
Returns
| Type | Description |
|---|---|
| Type |
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
| Edit this page View SourceIsListCompatibleWith(object)
Returns true if obj can be part of the same CLValue.List.
Declaration
public virtual bool IsListCompatibleWith(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | Object to compare with. |
Returns
| Type | Description |
|---|---|
| bool | true if obj can be part of the same CLValue list. |
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |
Overrides
Operators
| Edit this page View Sourceimplicit operator CLTypeInfo(CLType)
Declaration
public static implicit operator CLTypeInfo(CLType t)
Parameters
| Type | Name | Description |
|---|---|---|
| CLType | t |
Returns
| Type | Description |
|---|---|
| CLTypeInfo |