Weaver Extensions: remove comments

This commit is contained in:
vis2k 2021-02-09 16:37:17 +08:00
parent 1b5ff01c8c
commit 34a1722c76

View File

@ -195,13 +195,11 @@ public static T GetField<T>(this CustomAttribute ca, string field, T defaultValu
public static MethodDefinition GetMethod(this TypeDefinition td, string methodName) public static MethodDefinition GetMethod(this TypeDefinition td, string methodName)
{ {
// Linq allocations don't matter in weaver
return td.Methods.FirstOrDefault(method => method.Name == methodName); return td.Methods.FirstOrDefault(method => method.Name == methodName);
} }
public static List<MethodDefinition> GetMethods(this TypeDefinition td, string methodName) public static List<MethodDefinition> GetMethods(this TypeDefinition td, string methodName)
{ {
// Linq allocations don't matter in weaver
return td.Methods.Where(method => method.Name == methodName).ToList(); return td.Methods.Where(method => method.Name == methodName).ToList();
} }