Version 3.3.1.2

NodeInfo struct

Namespace: Sirenix.Serialization
Assembly: Sirenix.Serialization
public struct NodeInfo
Contains information about a node during deserialization and serialization.

Constructors

NodeInfo(String, Int32, Type, Boolean)
Initializes a new instance of the NodeInfo struct.
public NodeInfo(string name, int id, Type type, bool isArray)
Parameters
System.String name

The name of the node.

System.Int32 id

The id of the node.

System.Type type

The type of the node.

System.Boolean isArray

If set to true the node is an array node.

Fields

Empty
An empty node.
public static readonly NodeInfo Empty
Id
The id of the node, or -1 if the node has no id.
public readonly int Id
IsArray
Whether the node is an array or not.
public readonly bool IsArray
IsEmpty
Whether the node is an empty node.
public readonly bool IsEmpty
Name
The name of the node.
public readonly string Name
Type
The type of the node, or null if the node has no type metadata.
public readonly Type Type

Methods

Equals(Object)
Determines whether the specified System.Object, is equal to this instance.
public override bool Equals(object obj)
Parameters
System.Object obj

The System.Object to compare with this instance.

Returns
System.Boolean

true if the specified System.Object is equal to this instance; otherwise, false.

GetHashCode()
Returns a hash code for this instance.
public override int GetHashCode()
Returns
System.Int32

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Operators

Equality(NodeInfo, NodeInfo)
Implements the operator == between NodeInfo and NodeInfo.
public static bool operator ==(NodeInfo a, NodeInfo b)
Parameters
NodeInfo a

The first NodeInfo.

NodeInfo b

The second NodeInfo.

Returns
System.Boolean

true if the nodes were equal; otherwise, false.

Inequality(NodeInfo, NodeInfo)
Implements the operator != between NodeInfo and NodeInfo.
public static bool operator !=(NodeInfo a, NodeInfo b)
Parameters
NodeInfo a

The first NodeInfo.

NodeInfo b

The second NodeInfo.

Returns
System.Boolean

true if the nodes were not equal; otherwise, false.