Beispiel #1
0
 public SPResourceManager(string baseName, Assembly assembly) : base(baseName, assembly)
 {
     if (SPResourceManager.LoadDls())
     {
         try
         {
             this.innerResourceManager = (ResourceManager)SPResourceManager.dlsCreateResourceManager.Invoke(null, new object[]
             {
                 baseName,
                 assembly
             });
         }
         catch (Exception ex)
         {
             if (!(ex is TargetException) && !(ex is ArgumentException) && !(ex is TargetInvocationException) && !(ex is TargetParameterCountException) && !(ex is MethodAccessException) && !(ex is InvalidOperationException))
             {
                 throw;
             }
             this.innerResourceManager = null;
         }
     }
 }