diff --git a/src/Ben.Demystifier/Ben.Demystifier.csproj b/src/Ben.Demystifier/Ben.Demystifier.csproj index 86288ef..1e09b29 100644 --- a/src/Ben.Demystifier/Ben.Demystifier.csproj +++ b/src/Ben.Demystifier/Ben.Demystifier.csproj @@ -19,7 +19,7 @@ - netstandard2.1;netstandard2.0;net45 + netstandard2.1;netstandard2.0;net45;net6 true key.snk icon.png diff --git a/src/Ben.Demystifier/EnhancedStackTrace.Frames.cs b/src/Ben.Demystifier/EnhancedStackTrace.Frames.cs index 95c8321..033dcbe 100644 --- a/src/Ben.Demystifier/EnhancedStackTrace.Frames.cs +++ b/src/Ben.Demystifier/EnhancedStackTrace.Frames.cs @@ -605,7 +605,7 @@ namespace System.Diagnostics { var customAttribs = parameter.GetCustomAttributes(inherit: false); - var tupleNameAttribute = customAttribs.OfType().FirstOrDefault(a => a.IsTupleElementNameAttribue()); + var tupleNameAttribute = customAttribs.OfType().FirstOrDefault(a => a.IsTupleElementNameAttribute()); var tupleNames = tupleNameAttribute?.GetTransformerNames(); diff --git a/src/Ben.Demystifier/Internal/ReflectionHelper.cs b/src/Ben.Demystifier/Internal/ReflectionHelper.cs index 2cad2a0..123dc85 100644 --- a/src/Ben.Demystifier/Internal/ReflectionHelper.cs +++ b/src/Ben.Demystifier/Internal/ReflectionHelper.cs @@ -12,7 +12,7 @@ namespace System.Diagnostics.Internal /// public static class ReflectionHelper { - private static PropertyInfo? tranformerNamesLazyPropertyInfo; + private static PropertyInfo? transformerNamesLazyPropertyInfo; /// /// Returns true if the is a value tuple type. @@ -26,10 +26,10 @@ namespace System.Diagnostics.Internal /// Returns true if the given is of type TupleElementNameAttribute. /// /// - /// To avoid compile-time depencency hell with System.ValueTuple, this method uses reflection and not checks statically that + /// To avoid compile-time dependency hell with System.ValueTuple, this method uses reflection and not checks statically that /// the given is TupleElementNameAttribute. /// - public static bool IsTupleElementNameAttribue(this Attribute attribute) + public static bool IsTupleElementNameAttribute(this Attribute attribute) { var attributeType = attribute.GetType(); return attributeType.Namespace == "System.Runtime.CompilerServices" && @@ -40,12 +40,12 @@ namespace System.Diagnostics.Internal /// Returns 'TransformNames' property value from a given . /// /// - /// To avoid compile-time depencency hell with System.ValueTuple, this method uses reflection + /// To avoid compile-time dependency hell with System.ValueTuple, this method uses reflection /// instead of casting the attribute to a specific type. /// public static IList? GetTransformerNames(this Attribute attribute) { - Debug.Assert(attribute.IsTupleElementNameAttribue()); + Debug.Assert(attribute.IsTupleElementNameAttribute()); var propertyInfo = GetTransformNamesPropertyInfo(attribute.GetType()); return propertyInfo?.GetValue(attribute) as IList; @@ -54,9 +54,9 @@ namespace System.Diagnostics.Internal private static PropertyInfo? GetTransformNamesPropertyInfo(Type attributeType) { #pragma warning disable 8634 - return LazyInitializer.EnsureInitialized(ref tranformerNamesLazyPropertyInfo, + return LazyInitializer.EnsureInitialized(ref transformerNamesLazyPropertyInfo, #pragma warning restore 8634 - () => attributeType.GetProperty("TransformNames", BindingFlags.Instance | BindingFlags.Public)); + () => attributeType.GetProperty("TransformNames", BindingFlags.Instance | BindingFlags.Public)!); } } }