Beispiel #1
0
 public Resource GetResource(icResource item)
 {
     return(TryGetOrAdd(_resourcecache, item, res => ILSpyHelper.FindMatchingResource(AssemblyDefinition, res)));
 }
Beispiel #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));
		}
Beispiel #4
0
		public static Resource FindMatchingResource(AssemblyDefinition adef, icResource item)
		{
			return adef.MainModule.Resources.FirstOrDefault(p => p.Name == item.Name);
		}