YamlTypeClassifierFactory<T> class
Convenience base class for a YamlTypeClassifierFactory that produces type classifiers for a single declaring type T.
Namespace: System.Text.Yaml.Serialization · Assembly: Styml.dll
public abstract class YamlTypeClassifierFactory<T> : YamlTypeClassifierFactory
Inheritance: object → YamlTypeClassifierFactory → YamlTypeClassifierFactory
Convenience base class for a YamlTypeClassifierFactory that produces type classifiers for a single declaring type T.
Type parameters
T: The declaring type that this factory classifies.
RemarksLink to this heading
Seals YamlTypeClassifierFactory<T>.CanClassify to compare the context declaring type against T using reference equality. Subclasses only need to implement YamlTypeClassifierFactory.CreateYamlClassifier.
ConstructorsLink to this heading
protected YamlTypeClassifierFactory();
MethodsLink to this heading
CanClassifyLink to this heading
When overridden, indicates whether this factory can produce a classifier for the specified metadata context.
public sealed override bool CanClassify(YamlTypeClassifierContext context);
Parameters
context: The metadata context for the type being configured.
Returns: true if this factory can produce a classifier for context; otherwise false.