mirror of
https://github.com/BepInEx/BepInEx.git
synced 2026-10-20 01:46:13 +00:00
Reformat project; apply code style
This commit is contained in:
1 parent
81141fcfc4
commit
4bb48c502e
30 files changed
+213
-172
No files matched your search
@@ -80,35 +80,38 @@ public class PatcherPluginInfoAttribute : Attribute
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Defines an assembly that a patch method will target.
|
||||
/// Defines an assembly that a patch method will target.
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
public class TargetAssemblyAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Marker used to indicate all possible assemblies to be targeted by a patch method.
|
||||
/// Marker used to indicate all possible assemblies to be targeted by a patch method.
|
||||
/// </summary>
|
||||
public const string AllAssemblies = "_all";
|
||||
|
||||
/// <param name="targetAssembly">The short filename of the assembly. Use <see cref="AllAssemblies"/> to mark all possible assemblies as targets.</param>
|
||||
/// <param name="targetAssembly">
|
||||
/// The short filename of the assembly. Use <see cref="AllAssemblies" /> to mark all possible
|
||||
/// assemblies as targets.
|
||||
/// </param>
|
||||
public TargetAssemblyAttribute(string targetAssembly)
|
||||
{
|
||||
TargetAssembly = targetAssembly;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The short filename of the assembly to target.
|
||||
/// The short filename of the assembly to target.
|
||||
/// </summary>
|
||||
public string TargetAssembly { get; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Defines a type that a patch method will target.
|
||||
/// Defines a type that a patch method will target.
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
public class TargetTypeAttribute : Attribute
|
||||
{
|
||||
/// <param name="targetAssembly">The short filename of the assembly of which <paramref name="targetType"/> belongs to.</param>
|
||||
/// <param name="targetAssembly">The short filename of the assembly of which <paramref name="targetType" /> belongs to.</param>
|
||||
/// <param name="targetType">The full name of the type to target for patching.</param>
|
||||
public TargetTypeAttribute(string targetAssembly, string targetType)
|
||||
{
|
||||
@@ -117,12 +120,12 @@ public class TargetTypeAttribute : Attribute
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The short filename of the assembly to target.
|
||||
/// The short filename of the assembly to target.
|
||||
/// </summary>
|
||||
public string TargetAssembly { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The full name of the type to target for patching.
|
||||
/// The full name of the type to target for patching.
|
||||
/// </summary>
|
||||
public string TargetType { get; }
|
||||
}
|
||||
Reference in new issue
Block a user