Table of Contents

Class JsonEventArgs

Namespace
Alis.Core.Aspect.Data.Json
Assembly
Alis.dll

Provides data for a JSON event.

public sealed class JsonEventArgs : EventArgs

Inheritance

Inherited Members

Constructors

JsonEventArgs(TextWriter, object, IDictionary<object, object>, JsonOptions)

Initializes a new instance of the Alis.Core.Aspect.Data.Json.JsonEventArgs class.

public JsonEventArgs(TextWriter writer, object value, IDictionary<object, object> objectGraph, JsonOptions options)

Parameters

writer TextWriter

The writer currently in use.

value object

The value on the stack.

objectGraph IDictionary<object, object>

The current serialization object graph.

options JsonOptions

The options currently in use.

JsonEventArgs(TextWriter, object, IDictionary<object, object>, JsonOptions, string, object)

Initializes a new instance of the Alis.Core.Aspect.Data.Json.JsonEventArgs class.

public JsonEventArgs(TextWriter writer, object value, IDictionary<object, object> objectGraph, JsonOptions options, string name, object component)

Parameters

writer TextWriter

The writer currently in use.

value object

The value on the stack.

objectGraph IDictionary<object, object>

The current serialization object graph.

options JsonOptions

The options currently in use.

name string

The field or property name.

component object

The component holding the value.

Properties

Component

Gets the component holding the value. May be null.

public object Component { get; }

Property Value

object

EventType

Gets or sets the type of the event.

public JsonEventType EventType { get; set; }

Property Value

JsonEventType

First

Gets or sets a value indicating whether the object being handled is first in the list. If the object is handled and written to the stream, this must be set to false after the stream is written. If the object is skipped, it must not be changed.

public bool First { get; set; }

Property Value

bool

Handled

Gets or sets a value indicating whether this Alis.Core.Aspect.Data.Json.JsonEventArgs is handled. An handled object can be skipped, not written to the stream. If the object is written, First must be set to false, otherwise it must not be changed.

public bool Handled { get; set; }

Property Value

bool

Name

Gets or sets the name on the stack. The Name can be a property or field name when serializing objects. May be null.

public string Name { get; set; }

Property Value

string

ObjectGraph

Gets the current serialization object graph.

public IDictionary<object, object> ObjectGraph { get; }

Property Value

IDictionary<object, object>

Options

Gets the options currently in use.

public JsonOptions Options { get; }

Property Value

JsonOptions

Value

Gets or sets the value on the stack.

public object Value { get; set; }

Property Value

object

Writer

Gets the writer currently in use.

public TextWriter Writer { get; }

Property Value

TextWriter