Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced

SerializationCollectionMetadata.Constructor

Section titled “SerializationCollectionMetadata.Constructor”
  • Defines the shape and typed operations of a sequence or map.

API: engine
Project: Inno.Core.Serialization

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)

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.

Exception T:System.ArgumentException: The operations do not describe exactly one complete collection shape.