Exemple #1
0
 public MethodDefinition GetMethodDefinition(icMethodDefinition item)
 {
     return(TryGetOrAdd(_methodcache, item, mdef =>
     {
         var tdef = GetTypeDefinition(item.DeclaringType);
         return tdef == null ? null : ILSpyHelper.FindMatchingMethod(tdef, mdef);
     }));
 }
		public MethodDefinition GetMethodDefinition(icMethodDefinition item)
		{
			return TryGetOrAdd(_methodcache, item, mdef =>
			{
				var tdef = GetTypeDefinition(item.DeclaringType);
				return tdef == null ? null : ILSpyHelper.FindMatchingMethod(tdef, mdef);
			});
		}
Exemple #3
0
 public static MethodDefinition FindMatchingMethod(TypeDefinition tdef, icMethodDefinition item)
 {
     return(tdef.Methods.FirstOrDefault(m => m.ToString() == item.ToString()));
 }
		public static MethodDefinition FindMatchingMethod(TypeDefinition tdef, icMethodDefinition item)
		{
			return tdef.Methods.FirstOrDefault(m => m.ToString() == item.ToString());
		}