Table of Contents

Class JsonTypeIDAttribute

Namespace
Xunit.Sdk
Assembly
xunit.v3.common.dll

Used to decorate concrete serializable classes that implement IMessageSinkMessage to indicate what the serialized type ID should be. The type IDs must be unique, and only assigned to concrete types that will be serialized and deserialized.

[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
public sealed class JsonTypeIDAttribute : Attribute
Inheritance
JsonTypeIDAttribute
Inherited Members
Extension Methods
Xunit.Sdk.ReflectionExtensions.GetMatchingCustomAttributes(System.Attribute,System.String)
Xunit.Sdk.ReflectionExtensions.GetMatchingCustomAttributes(System.Attribute,System.Type)

Remarks

These types are made public for third parties only for the purpose of serializing and deserializing messages that are sent across the process boundary (that is, types which implement IMessageSinkMessage). Any other usage is not supported.

Constructors

JsonTypeIDAttribute(string)

Used to decorate concrete serializable classes that implement IMessageSinkMessage to indicate what the serialized type ID should be. The type IDs must be unique, and only assigned to concrete types that will be serialized and deserialized.

Properties

ID