diff --git a/CoreRemoting/Serialization/CrossFrameworkSerialization.cs b/CoreRemoting/Serialization/CrossFrameworkSerialization.cs index 0d9c2f4..ba0c805 100644 --- a/CoreRemoting/Serialization/CrossFrameworkSerialization.cs +++ b/CoreRemoting/Serialization/CrossFrameworkSerialization.cs @@ -12,19 +12,19 @@ public static class CrossFrameworkSerialization /// Redirects all loading attempts from a specified assembly name to another assembly name. /// /// Name of the assembly that should be redirected - /// Name of the assembly that should be used as replacement - public static void RedirectAssembly(string assemblyShortName, string replacmentAssemblyShortName) + /// Name of the assembly that should be used as replacement + public static void RedirectAssembly(string assemblyShortName, string replacementAssemblyShortName) { Assembly HandleAssemblyResolve(object _, ResolveEventArgs args) { var requestedAssembly = new AssemblyName(args.Name); - + if (requestedAssembly.Name == assemblyShortName) { try { - var replacmentAssembly = Assembly.Load(replacmentAssemblyShortName); - return replacmentAssembly; + var replacementAssembly = Assembly.Load(replacementAssemblyShortName); + return replacementAssembly; } catch (Exception) { @@ -45,7 +45,7 @@ public static void RedirectPrivateCoreLibToMscorlib() { RedirectAssembly("System.Private.CoreLib", "mscorlib"); } - + /// /// Redirects assembly "mscorlib" to "System.Private.CoreLib". /// @@ -53,4 +53,4 @@ public static void RedirectMscorlibToPrivateCoreLib() { RedirectAssembly("mscorlib", "System.Private.CoreLib"); } -} \ No newline at end of file +}