Synced
SerializationReader.Read
Section titled “SerializationReader.Read”
- Reads a value using its declared metadata type without constructing a generic method at runtime.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Core.Serialization
Scope: Runtime
Declaration
Section titled “Declaration”public object? InnoEngine.Serialization.SerializationReader.Read(string name, System.Type declaredType)Parameters
Section titled “Parameters”Parameter name: The required non-empty member name.
Parameter declaredType: The exact declaration whose converter and value semantics apply.
Returns
Section titled “Returns”The restored value, including null when the declaration permits it; invalid or missing data throws.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: The declared type is null.
Exception T:System.ArgumentException: The member name is empty.
Exception T:System.InvalidOperationException: The operation has ended or the member is missing, incompatible or unsupported.