Exemple #1
0
 public Resource GetResource(icResource item)
 {
     return(TryGetOrAdd(_resourcecache, item, res => ILSpyHelper.FindMatchingResource(AssemblyDefinition, res)));
 }
Exemple #2
0
 public static Resource FindMatchingResource(AssemblyDefinition adef, icResource item)
 {
     return(adef.MainModule.Resources.FirstOrDefault(p => p.ToString() == item.ToString()));
 }
		public Resource GetResource(icResource item)
		{
			return TryGetOrAdd(_resourcecache, item, res => ILSpyHelper.FindMatchingResource(AssemblyDefinition, res));
		}
		public static Resource FindMatchingResource(AssemblyDefinition adef, icResource item)
		{
			return adef.MainModule.Resources.FirstOrDefault(p => p.Name == item.Name);
		}