Sugarcoater<T> Struct
Represents a utility for creating instances of a type with metadata.
public record struct Sugarcoater<T> : IEquatable<Sugarcoater<T>>
Type Parameters
- T
The type of the value.
- Inheritance
- Implements
Constructors
Sugarcoater(Func<IXml |
Represents a utility for creating instances of a type with metadata. |
Properties
New |
A function that transforms or wraps a raw deserialized value, often to include metadata such as line information. |
New |
A function that creates and returns a new IXmlLineInfo object with a given XML reader. |
Methods
Equals(object) |
(Inherited from Value |
GetHashCode() |
(Inherited from Value |
ToString() |
(Inherited from Value |
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.
public Sugarcoater(Func<IXmlLineInfo, T, object> NewInstance, Func<XmlReader, IXmlLineInfo> NewLineInfo)
Parameters
- NewInstance
-
Func<IXml
Line , T, object>Info
A function that transforms or wraps a raw deserialized value, often to include metadata such as line information.
- NewLineInfo
-
Func<Xml
Reader , IXmlLine >Info
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.
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.
public Func<XmlReader, IXmlLineInfo> NewLineInfo { get; set; }