private AssemblyResourceLookup(Assembly assembly, ResourceManager manager)
 {
     ExceptionHelpers.CheckArgumentNotNull(assembly, "assembly");
     _assembly        = assembly;
     _resourceManager = manager;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Executes the given delegate and returns the exception that it throws.
 /// </summary>
 protected Exception GenerateException(Action willThrow)
 {
     return(ExceptionHelpers.GenerateException(willThrow));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Builds a resource manager for the given assembly.
 /// </summary>
 /// <param name="assembly"> The assembly to build the resource manager for. </param>
 /// <returns> The resource manager. </returns>
 public static ResourceManager BuildResourceManager(Assembly assembly)
 {
     ExceptionHelpers.CheckArgumentNotNull(assembly, "assembly");
     return(new ResourceManager(FindSingleResourceTable(assembly), assembly));
 }