InterfaceFactory Class

Initializes a new instance of the InterfaceFactory class.

Definition

Namespace: Common.Core.Classes
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
public class InterfaceFactory : JsonConverterFactory
Inheritance
Object    JsonConverter    JsonConverterFactory    InterfaceFactory

Remarks

Supports converting Interface types for Json serialization by using a factory pattern.

Constructors

InterfaceFactoryInitializes a new instance of the InterfaceFactory class.

Properties

ConcreteTypeGets the concrete class type.
InterfaceTypeGets the interface type.

Methods

CanConvertDetermines whether the converter instance can convert the specified object type.
(Overrides JsonConverterCanConvert(Type))
CreateConverterCreates a converter for a specified type.
(Overrides JsonConverterFactoryCreateConverter(Type, JsonSerializerOptions))

See Also