Search Results for

    Show / Hide Table of Contents

    Class HoconLiteral

    This class represents a string literal element in a HOCON (Human-Optimized Config Object Notation) configuration string.

    akka {  
      actor {
        provider = "Akka.Remote.RemoteActorRefProvider, Akka.Remote"
      }
    }
    Inheritance
    object
    HoconLiteral
    Implements
    IHoconElement
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Akka.Configuration.Hocon
    Assembly: Akka.dll
    Syntax
    public class HoconLiteral : IHoconElement

    Properties

    | Edit this page View Source

    Value

    Gets or sets the value of this element.

    Declaration
    public string Value { get; set; }
    Property Value
    Type Description
    string

    Methods

    | Edit this page View Source

    GetArray()

    N/A

    Declaration
    public IList<HoconValue> GetArray()
    Returns
    Type Description
    IList<HoconValue>

    N/A

    Exceptions
    Type Condition
    NotImplementedException

    This exception is thrown automatically since this element is a string literal and not an array.

    | Edit this page View Source

    GetString()

    Retrieves the string representation of this element.

    Declaration
    public string GetString()
    Returns
    Type Description
    string

    The value of this element.

    | Edit this page View Source

    IsArray()

    Determines whether this element is an array.

    Declaration
    public bool IsArray()
    Returns
    Type Description
    bool

    false

    | Edit this page View Source

    IsString()

    Determines whether this element is a string.

    Declaration
    public bool IsString()
    Returns
    Type Description
    bool

    true

    | Edit this page View Source

    ToString()

    Returns the string representation of this element.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    The value of this element.

    Overrides
    object.ToString()

    Implements

    IHoconElement

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET