Table of Contents

Class SourceGenTypeShapeProvider

Namespace
PolyType.SourceGenModel
Assembly
PolyType.dll

Defines a source generated ITypeShapeProvider implementation.

public abstract class SourceGenTypeShapeProvider : ITypeShapeProvider
Inheritance
SourceGenTypeShapeProvider
Implements
Inherited Members
Extension Methods

Methods

GetShape(Type)

Gets a ITypeShape instance corresponding to the supplied type.

public abstract ITypeShape? GetShape(Type type)

Parameters

type Type

The type for which a shape is requested.

Returns

ITypeShape

A ITypeShape instance corresponding to the current type.

GetShape<T>()

Gets a ITypeShape<T> instance corresponding to the supplied type.

public ITypeShape<T>? GetShape<T>()

Returns

ITypeShape<T>

A ITypeShape<T> instance corresponding to the current type.

Type Parameters

T

The type for which a shape is requested.