Class AheadOfTimeTypeDescriber
An ITypeDescriber that use (de)serializer that was generated ahead of time
by using Cesil.SourceGenerator.
Inheritance
System.Object
AheadOfTimeTypeDescriber
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Cesil
Assembly: Cesil.dll
Syntax
public sealed class AheadOfTimeTypeDescriber : ITypeDescriber, IEquatable<AheadOfTimeTypeDescriber>
Constructors
|
Improve this Doc
View Source
AheadOfTimeTypeDescriber()
Create a new AheadOfTimeTypeDescriber.
Note that a pre-allocated instance is also available on TypeDescribers.
Declaration
public AheadOfTimeTypeDescriber()
Methods
|
Improve this Doc
View Source
EnumerateMembersToDeserialize(TypeInfo)
Enumerate members which will be deserialized for the given type.
Note that these members are generated ahead of time with a source gneerator,
and cannot be changed at runtime.
Declaration
public IEnumerable<DeserializableMember> EnumerateMembersToDeserialize(TypeInfo forType)
Parameters
Type |
Name |
Description |
TypeInfo |
forType |
|
Returns
|
Improve this Doc
View Source
EnumerateMembersToSerialize(TypeInfo)
Enumerate members which will be serialized for the given type.
Note that these members are generated ahead of time with a source gneerator,
and cannot be changed at runtime.
Declaration
public IEnumerable<SerializableMember> EnumerateMembersToSerialize(TypeInfo forType)
Parameters
Type |
Name |
Description |
TypeInfo |
forType |
|
Returns
|
Improve this Doc
View Source
Equals(AheadOfTimeTypeDescriber)
Returns true if this and the given AheadOfTimeTypeDescribers are equal
Declaration
public bool Equals(AheadOfTimeTypeDescriber typeDescriber)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Equals(Object)
Returns true if this AheadOfTimeTypeDescriber equals the given object
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
GetCellsForDynamicRow(WriteContext, Object, Span<DynamicCellValue>)
This operation is not supported with AheadOfTimeTypeDescriber
Declaration
public int GetCellsForDynamicRow(in WriteContext context, object row, Span<DynamicCellValue> cells)
Parameters
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
GetDynamicCellParserFor(ReadContext, TypeInfo)
This operation is not supported with AheadOfTimeTypeDescriber
Declaration
public Parser GetDynamicCellParserFor(in ReadContext context, TypeInfo targetType)
Parameters
Type |
Name |
Description |
ReadContext |
context |
|
TypeInfo |
targetType |
|
Returns
|
Improve this Doc
View Source
GetDynamicRowConverter(ReadContext, IEnumerable<ColumnIdentifier>, TypeInfo)
This operation is not supported with AheadOfTimeTypeDescriber
Declaration
public DynamicRowConverter GetDynamicRowConverter(in ReadContext context, IEnumerable<ColumnIdentifier> columns, TypeInfo targetType)
Parameters
Returns
|
Improve this Doc
View Source
GetHashCode()
Returns a hash code for this AheadOfTimeTypeDescriber
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
|
Improve this Doc
View Source
GetInstanceProvider(TypeInfo)
Returns an InstanceProvider that can be used to create new instance of the given type
while deserializing.
Note that this InstanceProvider is generated ahead of time with a source gneerator,
and cannot be changed at runtime.
Declaration
public InstanceProvider GetInstanceProvider(TypeInfo forType)
Parameters
Type |
Name |
Description |
TypeInfo |
forType |
|
Returns
|
Improve this Doc
View Source
ToString()
Returns a representation of this AheadOfTimeTypeDescriber object.
Only for debugging, this value is not guaranteed to be stable.
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Operators
|
Improve this Doc
View Source
Equality(AheadOfTimeTypeDescriber, AheadOfTimeTypeDescriber)
Compare two AheadOfTimeTypeDescribers for equality
Declaration
public static bool operator ==(AheadOfTimeTypeDescriber a, AheadOfTimeTypeDescriber b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Inequality(AheadOfTimeTypeDescriber, AheadOfTimeTypeDescriber)
Compare two AheadOfTimeTypeDescribers for inequality
Declaration
public static bool operator !=(AheadOfTimeTypeDescriber a, AheadOfTimeTypeDescriber b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>