Interface IObjectTypeShape
- Namespace
- PolyType.Abstractions
- Assembly
- PolyType.dll
Provides a strongly typed shape model for a .NET object.
public interface IObjectTypeShape : ITypeShape
- Inherited Members
Properties
Constructor
Gets the constructor shape for the given type, if available.
IConstructorShape? Constructor { get; }
Property Value
- IConstructorShape
An IConstructorShape representation of the constructor.
IsRecordType
Gets a value indicating whether the current shape represents a C# record type.
bool IsRecordType { get; }
Property Value
IsTupleType
Gets a value indicating whether the current shape represents a tuple type, either Tuple or ValueTuple.
bool IsTupleType { get; }
Property Value
Properties
Gets all available property/field shapes for the given type.
IReadOnlyList<IPropertyShape> Properties { get; }
Property Value
- IReadOnlyList<IPropertyShape>
An enumeration of all available property/field shapes.