Casper.Network.SDK
Show / Hide Table of Contents

Class Unit

Represents the unit Rust type. aka (). It is used when there is no other meaningful value that could be returned.

Inheritance
object
Unit
Inherited Members
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Casper.Network.SDK.Types
Assembly: Casper.Network.SDK.dll
Syntax
public class Unit

Constructors

| Edit this page View Source

Unit()

Declaration
protected Unit()

Fields

| Edit this page View Source

Default

Declaration
public static readonly Unit Default
Field Value
Type Description
Unit

Methods

| Edit this page View Source

Equals(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
object.Equals(object)
| Edit this page View Source

GetHashCode()

Serves as the default hash function.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A hash code for the current object.

Overrides
object.GetHashCode()
  • Edit this page
  • View Source
In this article
Back to top Maintained by MAKE Technology LLC