Show / Hide Table of Contents

    Class JsonInstance

    Represents a JSON instance from a structural data source.

    Inheritance
    System.Object
    JsonInstance
    XmlJsonInstance
    Namespace: Cuemon.Runtime.Serialization
    Assembly: Cuemon.Runtime.dll
    Syntax
    public abstract class JsonInstance

    Constructors

    | Improve this Doc

    JsonInstance(String, Object, Int32)

    Initializes a new instance of the JsonInstance class.

    Declaration
    protected JsonInstance(string name, object value, int nodeNumber)
    Parameters
    Type Name Description
    System.String name

    The name of the JSON object.

    System.Object value

    The value of the JSON object.

    System.Int32 nodeNumber

    The logical node number of the JSON object placement in the originating structural data source.

    Properties

    | Improve this Doc

    Instances

    Gets the children of the current JsonInstance object.

    Declaration
    public JsonInstanceCollection Instances { get; }
    Property Value
    Type Description
    JsonInstanceCollection
    | Improve this Doc

    Name

    Gets the name of the JSON object.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String
    | Improve this Doc

    NodeNumber

    Gets the logical node number of the JSON object placement in the originating structural data source.

    Declaration
    protected int NodeNumber { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc

    Parent

    Gets or sets the parent of this JsonInstance object.

    Declaration
    public JsonInstance Parent { get; set; }
    Property Value
    Type Description
    JsonInstance

    The parent of this JsonInstance object.

    | Improve this Doc

    Value

    Gets the value of the JSON object.

    Declaration
    public object Value { get; }
    Property Value
    Type Description
    System.Object

    Methods

    | Improve this Doc

    GetSignature()

    Computes and returns a MD5 signature of the following properties: Name, Value and NodeNumber.

    Declaration
    public virtual string GetSignature()
    Returns
    Type Description
    System.String

    A MD5 signature of the following properties: Name, Value and NodeNumber.

    | Improve this Doc

    IsPartOfArray()

    Determines whether this JsonInstance should be part of an array.

    Declaration
    public virtual bool IsPartOfArray()
    Returns
    Type Description
    System.Boolean

    true if this JsonInstance should be part of an array; otherwise, false.

    Remarks

    Because of the complexity when generating JSON, this property should be treated as a hint-only. Additional logic is assumed necessary.

    | Improve this Doc

    WriteEndArray()

    Determines whether this JsonInstance is in a state, where a EndArray should be written.

    Declaration
    public virtual bool WriteEndArray()
    Returns
    Type Description
    System.Boolean

    true if this JsonInstance is in a state, where a EndArray should be written; otherwise, false.

    Remarks

    Because of the complexity when generating JSON, this property should be treated as a hint-only. Additional logic is assumed necessary.

    | Improve this Doc

    WriteStartArray()

    Determines whether this JsonInstance is in a state, where a BeginArray should be written.

    Declaration
    public virtual bool WriteStartArray()
    Returns
    Type Description
    System.Boolean

    true if this JsonInstance is in a state, where a BeginArray should be written; otherwise, false.

    Remarks

    Because of the complexity when generating JSON, this property should be treated as a hint-only. Additional logic is assumed necessary.

    | Improve this Doc

    WriteValueSeperator()

    Determines whether this JsonInstance is in a state, where a ValueSeperator should be written.

    Declaration
    public virtual bool WriteValueSeperator()
    Returns
    Type Description
    System.Boolean

    true if this JsonInstance is in a state, where a ValueSeperator should be written; otherwise, false.

    Remarks

    Because of the complexity when generating JSON, this property should be treated as a hint-only. Additional logic is assumed necessary.

    Extension Methods

    ConverterExtensions.ParseWith<TSource, TResult>(TSource, Func<TSource, TResult>)
    ConverterExtensions.ParseWith<TSource, T, TResult>(TSource, Func<TSource, T, TResult>, T)
    ConverterExtensions.ParseWith<TSource, T1, T2, TResult>(TSource, Func<TSource, T1, T2, TResult>, T1, T2)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, TResult>(TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, TResult>(TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    ConverterExtensions.As<TResult>(Object)
    ConverterExtensions.As<TResult>(Object, TResult)
    ConverterExtensions.As<TResult>(Object, TResult, IFormatProvider)
    DelegateUtilityExtensions.Wrap<TResult>(TResult)
    DelegateUtilityExtensions.DynamicWrap<TResult>(TResult)
    TweakerExtensions.Adjust<T>(T, Func<T, T>)
    TypeUtilityExtensions.Is<T>(Object)
    TypeUtilityExtensions.IsNot<T>(Object)
    TypeUtilityExtensions.IsNullable<T>(T)
    WrapperExtensions.UseWrapper<T>(T, Action<IDictionary<String, Object>>)
    WrapperExtensions.UseWrapper<T>(T, MemberInfo, Action<IDictionary<String, Object>>)
    EnumerableUtilityExtensions.Yield<TSource>(TSource)
    HashUtilityExtensions.ComputeHash(Object, Action<HashOptions>)
    HmacUtilityExtensions.ComputeKeyedHash(Object, Byte[], Action<KeyedHashOptions>)
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX