Class PrePatchTarget
- Namespace
- MonkeyLoader.Patching
- Assembly
- MonkeyLoader.dll
Represents an assembly and types within targeted by an EarlyMonkey<TMonkey>.
public sealed class PrePatchTarget
- Inheritance
-
PrePatchTarget
- Inherited Members
Constructors
PrePatchTarget(AssemblyName, IEnumerable<string>)
Creates a new pre-patch target, targeting the given assembly and optionally specific types by their full names.
public PrePatchTarget(AssemblyName assembly, IEnumerable<string> types)
Parameters
assembly
AssemblyNameThe name of the targeted assembly.
types
IEnumerable<string>The full names of the targeted types.
PrePatchTarget(AssemblyName, params string[])
Creates a new pre-patch target, targeting the given assembly and optionally specific types by their full names.
public PrePatchTarget(AssemblyName assembly, params string[] types)
Parameters
assembly
AssemblyNameThe name of the targeted assembly.
types
string[]The full names of the targeted types.
Properties
AllAvailable
Gets a special value for PrePatchTargets, that indicates wanting to patch all available AssemblyDefinitions.
public static IEnumerable<PrePatchTarget> AllAvailable { get; }
Property Value
Assembly
Gets the name of the targeted assembly.
public AssemblyName Assembly { get; }
Property Value
Types
Gets the full names of the targeted types.
public IEnumerable<string> Types { get; }
Property Value
Methods
TargetsType(TypeDefinition)
Gets whether this pre-patch target includes the given type definition.
public bool TargetsType(TypeDefinition typeDefinition)
Parameters
typeDefinition
TypeDefinitionThe type definion to check for being targeted.
Returns
- bool
true
if the type definition is a target; otherwise,false
.
TargetsType(string)
Gets whether this pre-patch target includes the given full name of a type.
public bool TargetsType(string fullName)
Parameters
fullName
stringThe full name to check for being targeted.
Returns
- bool
true
if the full name is a target; otherwise,false
.