Synced
SerializationCollectionMetadata.Constructor
Section titled “SerializationCollectionMetadata.Constructor”
- Defines the shape and typed operations of a sequence or map.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Core.Serialization
Declaration
Section titled “Declaration”public Inno.Core.Serialization.SerializationCollectionMetadata.SerializationCollectionMetadata(System.Type elementType, System.Type? keyType, System.Func<System.Collections.Generic.IReadOnlyList<object?>, object>? buildSequence, System.Func<System.Collections.Generic.IReadOnlyList<System.Collections.Generic.KeyValuePair<object?, object?>>, object>? buildMap, System.Func<object, System.Collections.Generic.IReadOnlyList<System.Collections.Generic.KeyValuePair<object?, object?>>>? enumerateMap)Parameters
Section titled “Parameters”Parameter elementType: The sequence element or map value type.
Parameter keyType: The map key type, or null for a sequence.
Parameter buildSequence: A sequence factory, or null for a map.
Parameter buildMap: A map factory, or null for a sequence.
Parameter enumerateMap: Typed map enumeration, or null for a sequence.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: The operations do not describe exactly one complete collection shape.