Class PatchDefinition

A definition of an individual patch for use by AssemblyPatcher.

Inheritance
System.Object PatchDefinition
Inherited Members
System.Object.ToString() System.Object.Equals(System.Object) System.Object.Equals(System.Object, System.Object) System.Object.ReferenceEquals(System.Object, System.Object) System.Object.GetHashCode() System.Object.GetType() System.Object.MemberwiseClone()
Namespace: BepInEx.Preloader.Core.Patching
Assembly: BepInEx.Preloader.Core.dll
Syntax
public class PatchDefinition

Constructors

PatchDefinition(TargetAssemblyAttribute, BasePatcher, MethodInfo)

Declaration
public PatchDefinition(TargetAssemblyAttribute targetAssembly, BasePatcher instance, MethodInfo methodInfo)
Parameters
Type Name Description
TargetAssemblyAttribute targetAssembly
BasePatcher instance
System.Reflection.MethodInfo methodInfo

PatchDefinition(TargetTypeAttribute, BasePatcher, MethodInfo)

Declaration
public PatchDefinition(TargetTypeAttribute targetType, BasePatcher instance, MethodInfo methodInfo)
Parameters
Type Name Description
TargetTypeAttribute targetType
BasePatcher instance
System.Reflection.MethodInfo methodInfo

Properties

FullName

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

Declaration
public string FullName { get; }
Property Value
Type Description
System.String

Instance

The instance of the BasePatcher this PatchDefinition originates from.

Declaration
public BasePatcher Instance { get; }
Property Value
Type Description
BasePatcher

MethodInfo

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

Declaration
public MethodInfo MethodInfo { get; }
Property Value
Type Description
System.Reflection.MethodInfo

TargetAssembly

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

Declaration
public TargetAssemblyAttribute TargetAssembly { get; }
Property Value
Type Description
TargetAssemblyAttribute

TargetType

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

Declaration
public TargetTypeAttribute TargetType { get; }
Property Value
Type Description
TargetTypeAttribute