C# Класс Akka.Configuration.Hocon.HoconObject

Наследование: IHoconElement
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
QuoteIfNeeded string

Открытые методы

Метод Описание
GetArray ( ) : IList

Retrieves a list of elements associated with this element.

GetKey ( string key ) : HoconValue

Retrieves the value associated with the supplied key.

GetOrCreateKey ( string key ) : HoconValue

Retrieves the value associated with the supplied key. If the supplied key is not found, then one is created with a blank value.

GetString ( ) : string

Retrieves the string representation of this element.

HoconObject ( ) : System

Initializes a new instance of the HoconObject class.

IsArray ( ) : bool

Determines whether this element is an array.

IsString ( ) : bool

Determines whether this element is a string.

Merge ( HoconObject other ) : void

Merges the specified object into this instance.

ToString ( ) : string

Returns a HOCON string representation of this element.

ToString ( int indent ) : string

Returns a HOCON string representation of this element.

Приватные методы

Метод Описание
QuoteIfNeeded ( string text ) : string

Описание методов

GetArray() публичный Метод

Retrieves a list of elements associated with this element.
/// This element is an object. It is not an array. /// Therefore this method will throw an exception. ///
public GetArray ( ) : IList
Результат IList

GetKey() публичный Метод

Retrieves the value associated with the supplied key.
public GetKey ( string key ) : HoconValue
key string The key associated with the value to retrieve.
Результат HoconValue

GetOrCreateKey() публичный Метод

Retrieves the value associated with the supplied key. If the supplied key is not found, then one is created with a blank value.
public GetOrCreateKey ( string key ) : HoconValue
key string The key associated with the value to retrieve.
Результат HoconValue

GetString() публичный Метод

Retrieves the string representation of this element.
/// This element is an object. It is not a string. /// Therefore this method will throw an exception. ///
public GetString ( ) : string
Результат string

HoconObject() публичный Метод

Initializes a new instance of the HoconObject class.
public HoconObject ( ) : System
Результат System

IsArray() публичный Метод

Determines whether this element is an array.
public IsArray ( ) : bool
Результат bool

IsString() публичный Метод

Determines whether this element is a string.
public IsString ( ) : bool
Результат bool

Merge() публичный Метод

Merges the specified object into this instance.
public Merge ( HoconObject other ) : void
other HoconObject The object to merge into this instance.
Результат void

ToString() публичный Метод

Returns a HOCON string representation of this element.
public ToString ( ) : string
Результат string

ToString() публичный Метод

Returns a HOCON string representation of this element.
public ToString ( int indent ) : string
indent int The number of spaces to indent the string.
Результат string