Search Results for

    Show / Hide Table of Contents

    Struct MicroAlgos

    Base unit of Algos

    Implements
    IWrappedValue<UInt64>
    Namespace: Algorand.Unity
    Assembly: cs.temp.dll.dll
    Syntax
    [Serializable]
    [AlgoApiFormatter(typeof(WrappedValueFormatter<MicroAlgos, ulong>), "", "", 0)]
    public struct MicroAlgos : IEquatable<MicroAlgos>, IEquatable<ulong>, IWrappedValue<ulong>

    Constructors

    MicroAlgos(UInt64)

    Declaration
    public MicroAlgos(ulong amount)
    Parameters
    Type Name Description
    UInt64 amount

    Fields

    PerAlgo

    Amount of micro algos per algo.

    Declaration
    public const ulong PerAlgo = 1000000UL
    Field Value
    Type Description
    UInt64

    Properties

    Amount

    The numeric amount of MicroAlgos.

    Declaration
    public ulong Amount { get; set; }
    Property Value
    Type Description
    UInt64

    Methods

    Equals(MicroAlgos)

    Declaration
    public bool Equals(MicroAlgos other)
    Parameters
    Type Name Description
    MicroAlgos other
    Returns
    Type Description
    Boolean

    Equals(UInt64)

    Declaration
    public bool Equals(ulong other)
    Parameters
    Type Name Description
    UInt64 other
    Returns
    Type Description
    Boolean

    FromAlgos(Double)

    Converts the given amount of algos into microalgos.

    Declaration
    public static MicroAlgos FromAlgos(double algos)
    Parameters
    Type Name Description
    Double algos

    The amount of algos

    Returns
    Type Description
    MicroAlgos

    MicroAlgo amount of algos

    ToAlgos()

    Converts these MicroAlgos to units of Algos.

    Declaration
    public double ToAlgos()
    Returns
    Type Description
    Double

    Operators

    Implicit(MicroAlgos to UInt64)

    Declaration
    public static implicit operator ulong (MicroAlgos microAlgos)
    Parameters
    Type Name Description
    MicroAlgos microAlgos
    Returns
    Type Description
    UInt64

    Implicit(UInt64 to MicroAlgos)

    Declaration
    public static implicit operator MicroAlgos(ulong amount)
    Parameters
    Type Name Description
    UInt64 amount
    Returns
    Type Description
    MicroAlgos

    Explicit Interface Implementations

    IWrappedValue<UInt64>.WrappedValue

    Declaration
    ulong IWrappedValue<ulong>.WrappedValue { get; set; }
    Returns
    Type Description
    UInt64

    Implements

    IWrappedValue<T>
    ☀
    ☾
    In This Article
    Back to top
    Generated by DocFX
    ☀
    ☾