Class AggregateExpectationTypeResolver<T>
- Namespace
- Exiled.CustomRoles.API.Features.Parsers
- Assembly
- Exiled.CustomRoles.dll
Supports all classes in the .NET Framework class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all classes in the .NET Framework; it is the root of the type hierarchy.
public class AggregateExpectationTypeResolver<T> : ITypeDiscriminator where T : class
Type Parameters
T
- Inheritance
-
AggregateExpectationTypeResolver<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
AggregateExpectationTypeResolver(INamingConvention)
Initializes a new instance of the AggregateExpectationTypeResolver<T> class.
public AggregateExpectationTypeResolver(INamingConvention namingConvention)
Parameters
namingConventionINamingConventionThe YamlDotNet.Serialization.INamingConvention instance.
Properties
BaseType
Gets the base Type.
public Type BaseType { get; }
Property Value
Methods
TryResolve(ParsingEventBuffer, out Type?)
Tries to resolve a mapping into a specific Type.
public bool TryResolve(ParsingEventBuffer buffer, out Type? suggestedType)
Parameters
bufferParsingEventBufferThe ParsingEventBuffer parser buffer.
suggestedTypeTypeThe Type to resolve the mapping key.