예제 #1
0
 public PropertyDefinition GetPropertyDefinition(icPropertyDefinition item)
 {
     return(TryGetOrAdd(_propertycache, item, pdef =>
     {
         var tdef = GetTypeDefinition(item.DeclaringType);
         return tdef == null ? null : ILSpyHelper.FindMatchingProperty(tdef, pdef);
     }));
 }
		public PropertyDefinition GetPropertyDefinition(icPropertyDefinition item)
		{
			return TryGetOrAdd(_propertycache, item, pdef =>
			{
				var tdef = GetTypeDefinition(item.DeclaringType);
				return tdef == null ? null : ILSpyHelper.FindMatchingProperty(tdef, pdef);
			});
		}
예제 #3
0
 public static PropertyDefinition FindMatchingProperty(TypeDefinition tdef, icPropertyDefinition item)
 {
     return(tdef.Properties.FirstOrDefault(p => p.ToString() == item.ToString()));
 }
예제 #4
0
		public static PropertyDefinition FindMatchingProperty(TypeDefinition tdef, icPropertyDefinition item)
		{
			return tdef.Properties.FirstOrDefault(p => p.ToString() == item.ToString());
		}