Skip to content

TargetTypeAttribute Class

Defines a type that a patch method will target.

C#
[AttributeUsage(AttributeTargets.Method)]
public class TargetTypeAttribute : Attribute

Inheritance objectAttribute

C#
public TargetTypeAttribute(string targetAssembly, string targetType)

targetAssembly string
The short filename of the assembly of which targetType belongs to.

targetType string
The full name of the type to target for patching.

The short filename of the assembly to target.

C#
public string TargetAssembly { get; }

The full name of the type to target for patching.

C#
public string TargetType { get; }