Skip to content

PatchDefinition Class

A definition of an individual patch for use by AssemblyPatcher.

C#
public class PatchDefinition

Inheritance object

PatchDefinition(TargetAssemblyAttribute, BasePatcher, MethodInfo)

Section titled “PatchDefinition(TargetAssemblyAttribute, BasePatcher, MethodInfo)”
C#
public PatchDefinition(TargetAssemblyAttribute targetAssembly, BasePatcher instance, MethodInfo methodInfo)

targetAssembly TargetAssemblyAttribute

instance BasePatcher

methodInfo MethodInfo

PatchDefinition(TargetTypeAttribute, BasePatcher, MethodInfo)

Section titled “PatchDefinition(TargetTypeAttribute, BasePatcher, MethodInfo)”
C#
public PatchDefinition(TargetTypeAttribute targetType, BasePatcher instance, MethodInfo methodInfo)

targetType TargetTypeAttribute

instance BasePatcher

methodInfo MethodInfo

The assembly / assemblies this patch will target, if there any.

C#
public TargetAssemblyAttribute TargetAssembly { get; }

The type / types this patch will target, if there are any.

C#
public TargetTypeAttribute TargetType { get; }

The instance of the BasePatcher this PatchDefinition originates from.

C#
public BasePatcher Instance { get; }

The method that will perform the patching logic defined by this PatchDefinition instance.

C#
public MethodInfo MethodInfo { get; }

A friendly name for this patch definition, for use in logging and error tracking.

C#
public string FullName { get; }