You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public sealed class EnableKeyedSerializerAttribute : Attribute
{
public EnableKeyedSerializerAttribute(Type serializerType)
{
SerializerType = serializerType ?? throw new ArgumentNullException(nameof(serializerType));
if (!typeof(IExternalSerializer).IsAssignableFrom(serializerType)) throw new ArgumentException($"Type {serializerType} does not implement {typeof(IKeyedSerializer)}");
}
/// <summary>
/// The serializer type to use for this class in the event that no other serializer claims responsibility.