Class DeclaredPatch
A patch the mod declares: its target, Type::Name for any overload or Type::Name(ParameterType,...) for
one; its kind; and optionally the patch method (Type::Name, with or without parameters). Types are written as
.NET writes them: Terminal, MyMod.Plugin+RegisterCommands, System.Int32.
public sealed record DeclaredPatch
- Inheritance
-
objectDeclaredPatch
Constructors
DeclaredPatch(string, string, string?)
A patch the mod declares: its target, Type::Name for any overload or Type::Name(ParameterType,...) for
one; its kind; and optionally the patch method (Type::Name, with or without parameters). Types are written as
.NET writes them: Terminal, MyMod.Plugin+RegisterCommands, System.Int32.
public DeclaredPatch(string Target, string Kind, string? Patch = null)
Parameters
TargetstringKindstringPatchstring
Properties
Kind
public string Kind { get; init; }
Property Value
- string
Patch
public string? Patch { get; init; }
Property Value
- string
Target
public string Target { get; init; }
Property Value
- string
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.