Sugarcoater<T> Struct

Represents a utility for creating instances of a type with metadata.

C#
public record struct Sugarcoater<T> : IEquatable<Sugarcoater<T>>

Type Parameters

T

The type of the value.

Inheritance
Sugarcoater<T>
Implements

Constructors

Sugarcoater(Func<IXmlLineInfo, T, object>, Func<XmlReader, IXmlLineInfo>)

Represents a utility for creating instances of a type with metadata.

Properties

NewInstance

A function that transforms or wraps a raw deserialized value, often to include metadata such as line information.

NewLineInfo

A function that creates and returns a new IXmlLineInfo object with a given XML reader.

Methods

Equals(object) (Inherited from ValueType)
GetHashCode() (Inherited from ValueType)
ToString() (Inherited from ValueType)
GetType() (Inherited from object)
MemberwiseClone() (Inherited from object)

Constructors Detail

Sugarcoater(Func<IXmlLineInfo, T, object>, Func<XmlReader, IXmlLineInfo>)

Represents a utility for creating instances of a type with metadata.

C#
public Sugarcoater(Func<IXmlLineInfo, T, object> NewInstance, Func<XmlReader, IXmlLineInfo> NewLineInfo)

Parameters

NewInstance
Func<IXmlLineInfo, T, object>

A function that transforms or wraps a raw deserialized value, often to include metadata such as line information.

NewLineInfo
Func<XmlReader, IXmlLineInfo>

A function that creates and returns a new IXmlLineInfo object with a given XML reader.

Properties Detail

NewInstance

A function that transforms or wraps a raw deserialized value, often to include metadata such as line information.

C#
public Func<IXmlLineInfo, T, object> NewInstance { get; set; }

Property Value

NewLineInfo

A function that creates and returns a new IXmlLineInfo object with a given XML reader.

C#
public Func<XmlReader, IXmlLineInfo> NewLineInfo { get; set; }

Property Value