PatchDefinition Class
Definition
Section titled “Definition”A definition of an individual patch for use by AssemblyPatcher.
public class PatchDefinition
Inheritance object
Constructors
Section titled “Constructors”PatchDefinition(TargetAssemblyAttribute, BasePatcher, MethodInfo)
Section titled “PatchDefinition(TargetAssemblyAttribute, BasePatcher, MethodInfo)”public PatchDefinition(TargetAssemblyAttribute targetAssembly, BasePatcher instance, MethodInfo methodInfo)
Parameters
Section titled “Parameters”targetAssembly
TargetAssemblyAttribute
instance
BasePatcher
methodInfo
MethodInfo
PatchDefinition(TargetTypeAttribute, BasePatcher, MethodInfo)
Section titled “PatchDefinition(TargetTypeAttribute, BasePatcher, MethodInfo)”public PatchDefinition(TargetTypeAttribute targetType, BasePatcher instance, MethodInfo methodInfo)
Parameters
Section titled “Parameters”targetType
TargetTypeAttribute
instance
BasePatcher
methodInfo
MethodInfo
Properties
Section titled “Properties”TargetAssembly
Section titled “TargetAssembly”The assembly / assemblies this patch will target, if there any.
public TargetAssemblyAttribute TargetAssembly { get; }
TargetType
Section titled “TargetType”The type / types this patch will target, if there are any.
public TargetTypeAttribute TargetType { get; }
Instance
Section titled “Instance”The instance of the BasePatcher this PatchDefinition originates from.
public BasePatcher Instance { get; }
MethodInfo
Section titled “MethodInfo”The method that will perform the patching logic defined by this PatchDefinition instance.
public MethodInfo MethodInfo { get; }
FullName
Section titled “FullName”A friendly name for this patch definition, for use in logging and error tracking.
public string FullName { get; }