TomlTypeInfo<T> Class
Represents metadata and operations for a specific serializable type.
public abstract class TomlTypeInfo<T> : TomlTypeInfoType parameters
T- The represented CLR type.
- Inheritance
TomlTypeInfoTomlTypeInfo<T>
Constructors
| Name | Description |
|---|---|
| TomlTypeInfo(TomlSerializerOptions) | Initializes a new instance of the TomlTypeInfo<T> class. |
TomlTypeInfo(TomlSerializerOptions)
TomlTypeInfo.csInitializes a new instance of the TomlTypeInfo<T> class.
protected TomlTypeInfo(TomlSerializerOptions options)Parameters
optionsTomlSerializerOptions- The options associated with the metadata.
Methods
| Name | Description |
|---|---|
| Read(TomlReader) | Reads a value from an existing TOML reader. |
| ReadAsObject(TomlReader) | Reads a value from an existing TOML reader. |
| Write(TomlWriter, object?) | Writes a value to an existing TOML writer. |
| Write(TomlWriter, T) | Writes a value to an existing TOML writer. |
Read(TomlReader)
Reads a value from an existing TOML reader.
public abstract T? Read(TomlReader reader)ReadAsObject(TomlReader)
TomlTypeInfo.csReads a value from an existing TOML reader.
public sealed override object? ReadAsObject(TomlReader reader)Write overloads
Write(TomlWriter, object?)
TomlTypeInfo.csWrites a value to an existing TOML writer.
public sealed override void Write(TomlWriter writer, object? value)Parameters
writerTomlWritervalueobject?
Write(TomlWriter, T)
Writes a value to an existing TOML writer.
public abstract void Write(TomlWriter writer, T value)Parameters
writerTomlWritervalueT