Beispiel #1
0
 public void ApplyTo(IResourceLibraryCache libraryCache)
 {
     foreach (string index in this.Libraries)
     {
         IResourceLibrary resourceLibrary1 = this[index];
         IResourceLibrary resourceLibrary2 = libraryCache[index];
         foreach (int num in resourceLibrary1.ResourceTypes)
         {
             foreach (IResource resource in resourceLibrary1[(object)num])
             {
                 ResourceExtensions.Update(resourceLibrary2.GetResource(resource.Name, (object)num), ResourceExtensions.GetBytes(resource));
             }
         }
     }
 }
Beispiel #2
0
 public static void Update(this IResource resource, string data, Encoding encoding)
 {
     ResourceExtensions.Update(resource, data, encoding, resource.Library.DefaultLanguage);
 }