summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Koritzinsky <jekoritz@microsoft.com>2019-05-09 00:39:27 -0700
committerGitHub <noreply@github.com>2019-05-09 00:39:27 -0700
commitaa494182a1b005674619c0177f238840812db6cd (patch)
treee3323712d9bd9a0a16bedb12a6b3e650f3f423ed
parent29df4e8218ee7d147542f767d899c5c639932e06 (diff)
downloadcoreclr-aa494182a1b005674619c0177f238840812db6cd.tar.gz
coreclr-aa494182a1b005674619c0177f238840812db6cd.tar.bz2
coreclr-aa494182a1b005674619c0177f238840812db6cd.zip
Fix ComActivator typo. (#24485)
-rw-r--r--src/System.Private.CoreLib/src/Internal/Runtime/InteropServices/ComActivator.cs6
-rw-r--r--tests/src/Interop/COM/Activator/Program.cs8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/System.Private.CoreLib/src/Internal/Runtime/InteropServices/ComActivator.cs b/src/System.Private.CoreLib/src/Internal/Runtime/InteropServices/ComActivator.cs
index d50dfcd7e5..efe8767949 100644
--- a/src/System.Private.CoreLib/src/Internal/Runtime/InteropServices/ComActivator.cs
+++ b/src/System.Private.CoreLib/src/Internal/Runtime/InteropServices/ComActivator.cs
@@ -143,7 +143,7 @@ namespace Internal.Runtime.InteropServices
/// </summary>
/// <param name="cxt">Reference to a <see cref="ComActivationContext"/> instance</param>
/// <param name="register">true if called for register or false to indicate unregister</param>
- public static void ClassRegisterationScenarioForType(ComActivationContext cxt, bool register)
+ public static void ClassRegistrationScenarioForType(ComActivationContext cxt, bool register)
{
// Retrieve the attribute type to use to determine if a function is the requested user defined
// registration function.
@@ -281,7 +281,7 @@ $@"{nameof(RegisterClassForTypeInternal)} arguments:
try
{
var cxt = ComActivationContext.Create(ref cxtInt);
- ClassRegisterationScenarioForType(cxt, register: true);
+ ClassRegistrationScenarioForType(cxt, register: true);
}
catch (Exception e)
{
@@ -318,7 +318,7 @@ $@"{nameof(UnregisterClassForTypeInternal)} arguments:
try
{
var cxt = ComActivationContext.Create(ref cxtInt);
- ClassRegisterationScenarioForType(cxt, register: false);
+ ClassRegistrationScenarioForType(cxt, register: false);
}
catch (Exception e)
{
diff --git a/tests/src/Interop/COM/Activator/Program.cs b/tests/src/Interop/COM/Activator/Program.cs
index eb925ad163..68719569eb 100644
--- a/tests/src/Interop/COM/Activator/Program.cs
+++ b/tests/src/Interop/COM/Activator/Program.cs
@@ -180,8 +180,8 @@ namespace Activator
Assert.IsFalse(inst.DidUnregister());
cxt.InterfaceId = Guid.Empty;
- ComActivator.ClassRegisterationScenarioForType(cxt, register: true);
- ComActivator.ClassRegisterationScenarioForType(cxt, register: false);
+ ComActivator.ClassRegistrationScenarioForType(cxt, register: true);
+ ComActivator.ClassRegistrationScenarioForType(cxt, register: false);
Assert.IsTrue(inst.DidRegister());
Assert.IsTrue(inst.DidUnregister());
@@ -217,7 +217,7 @@ namespace Activator
bool exceptionThrown = false;
try
{
- ComActivator.ClassRegisterationScenarioForType(cxt, register: true);
+ ComActivator.ClassRegistrationScenarioForType(cxt, register: true);
}
catch
{
@@ -229,7 +229,7 @@ namespace Activator
exceptionThrown = false;
try
{
- ComActivator.ClassRegisterationScenarioForType(cxt, register: false);
+ ComActivator.ClassRegistrationScenarioForType(cxt, register: false);
}
catch
{