Table of Contents

Interface IEnumerableTypeShape

Namespace
TypeShape.Abstractions
Assembly
TypeShape.dll

Provides a strongly typed shape model for a .NET type that is enumerable.

public interface IEnumerableTypeShape : ITypeShape
Inherited Members

Remarks

Typically covers all types implementing IEnumerable<T> or IEnumerable.

Properties

ConstructionStrategy

Gets the construction strategy for the given collection.

CollectionConstructionStrategy ConstructionStrategy { get; }

Property Value

CollectionConstructionStrategy

ElementType

The shape of the underlying element type.

ITypeShape ElementType { get; }

Property Value

ITypeShape

Remarks

For non-generic IEnumerable this returns the shape for object.

Rank

Gets the rank of the enumerable, if a multi-dimensional array.

int Rank { get; }

Property Value

int