SerializationItem

Ecng.Serialization

Represents a named, typed serialization value.

Herda de: Equatable<SerializationItem>

Construtores

SerializationItem
public SerializationItem(string name, Type type, object value)
serializationItem = SerializationItem(name, type, value)

Initializes a new instance with the specified name, type, and value.

Propriedades

Name
public string Name { get; }
value = serializationItem.Name

Gets the item name.

Type
public Type Type { get; }
value = serializationItem.Type

Gets the CLR type of the item.

Value
public object Value { get; set; }
value = serializationItem.Value
serializationItem.Value = value

Gets or sets the item value.

Métodos

Clone
public override SerializationItem Clone()
result = serializationItem.Clone()

Creates a deep copy of this item.

GetHashCode
public override int GetHashCode()
result = serializationItem.GetHashCode()

Serves as the default hash function.

Retorna: A hash code for the current object.

OnEquals
protected override bool OnEquals(SerializationItem other)
result = serializationItem.OnEquals(other)
ToString
public override string ToString()
result = serializationItem.ToString()

Returns a string representation of the tuple, with values separated by commas.

Retorna: A string representing the tuple's values.