From 6652612cbc030b2e99d0cacb4d50dc2c1390c0c4 Mon Sep 17 00:00:00 2001 From: Denis Lehmann Date: Mon, 4 Dec 2023 16:14:29 +0100 Subject: [PATCH] correct method typo --- rcldotnet/MessageStaticMemberCache.cs | 6 +++--- rcldotnet/ServiceDefinitionStaticMemberCache.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rcldotnet/MessageStaticMemberCache.cs b/rcldotnet/MessageStaticMemberCache.cs index 2567cb5f..003db8d0 100644 --- a/rcldotnet/MessageStaticMemberCache.cs +++ b/rcldotnet/MessageStaticMemberCache.cs @@ -66,10 +66,10 @@ static MessageStaticMemberCache() public static IntPtr GetTypeSupport() { - // mehtod because it could throw. + // method because it could throw. if (s_typeSupport == IntPtr.Zero) { - throw new InvalidOperationException($"Type '{typeof(T).FullName}' did not define a correct __GetTypeSupport mehtod."); + throw new InvalidOperationException($"Type '{typeof(T).FullName}' did not define a correct __GetTypeSupport method."); } return s_typeSupport; @@ -83,7 +83,7 @@ public static SafeHandle CreateMessageHandle() } else { - throw new InvalidOperationException($"Type '{typeof(T).FullName}' did not define a correct __CreateMessageHandle mehtod."); + throw new InvalidOperationException($"Type '{typeof(T).FullName}' did not define a correct __CreateMessageHandle method."); } } } diff --git a/rcldotnet/ServiceDefinitionStaticMemberCache.cs b/rcldotnet/ServiceDefinitionStaticMemberCache.cs index c222f9c9..b28ef542 100644 --- a/rcldotnet/ServiceDefinitionStaticMemberCache.cs +++ b/rcldotnet/ServiceDefinitionStaticMemberCache.cs @@ -49,10 +49,10 @@ static ServiceDefinitionStaticMemberCache() public static IntPtr GetTypeSupport() { - // mehtod because it could throw. + // method because it could throw. if (s_typeSupport == IntPtr.Zero) { - throw new InvalidOperationException($"Type '{typeof(TService).FullName}' did not define a correct __GetTypeSupport mehtod."); + throw new InvalidOperationException($"Type '{typeof(TService).FullName}' did not define a correct __GetTypeSupport method."); } return s_typeSupport;