From 645a596f7b22baac2d4d22094e90ee247f625f89 Mon Sep 17 00:00:00 2001 From: mlaboss-rsb <104159876+mlaboss-rsb@users.noreply.github.com> Date: Wed, 8 Jun 2022 12:25:37 -0400 Subject: [PATCH] Make all Demystifier classes internal (#282) --- src/Exceptionless/Demystifier/EnhancedStackFrame.cs | 2 +- src/Exceptionless/Demystifier/EnhancedStackTrace.Frames.cs | 2 +- src/Exceptionless/Demystifier/EnhancedStackTrace.cs | 2 +- src/Exceptionless/Demystifier/Enumerable/EnumerableIList.cs | 4 ++-- src/Exceptionless/Demystifier/Enumerable/EnumeratorIList.cs | 2 +- src/Exceptionless/Demystifier/Enumerable/IEnumerableIList.cs | 2 +- src/Exceptionless/Demystifier/Internal/ReflectionHelper.cs | 2 +- src/Exceptionless/Demystifier/ResolvedMethod.cs | 2 +- src/Exceptionless/Demystifier/ResolvedParameter.cs | 2 +- src/Exceptionless/Demystifier/StringBuilderExtentions.cs | 2 +- src/Exceptionless/Demystifier/TypeNameHelper.cs | 2 +- src/Exceptionless/Demystifier/ValueTupleResolvedParameter.cs | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/Exceptionless/Demystifier/EnhancedStackFrame.cs b/src/Exceptionless/Demystifier/EnhancedStackFrame.cs index 2fb8fc45..16fcf504 100644 --- a/src/Exceptionless/Demystifier/EnhancedStackFrame.cs +++ b/src/Exceptionless/Demystifier/EnhancedStackFrame.cs @@ -5,7 +5,7 @@ namespace System.Diagnostics { - public class EnhancedStackFrame : StackFrame + internal class EnhancedStackFrame : StackFrame { private readonly string? _fileName; private readonly int _lineNumber; diff --git a/src/Exceptionless/Demystifier/EnhancedStackTrace.Frames.cs b/src/Exceptionless/Demystifier/EnhancedStackTrace.Frames.cs index 705233cb..09a655f2 100644 --- a/src/Exceptionless/Demystifier/EnhancedStackTrace.Frames.cs +++ b/src/Exceptionless/Demystifier/EnhancedStackTrace.Frames.cs @@ -17,7 +17,7 @@ namespace System.Diagnostics { - public partial class EnhancedStackTrace + internal partial class EnhancedStackTrace { private static readonly Type? StackTraceHiddenAttributeType = Type.GetType("System.Diagnostics.StackTraceHiddenAttribute", false); diff --git a/src/Exceptionless/Demystifier/EnhancedStackTrace.cs b/src/Exceptionless/Demystifier/EnhancedStackTrace.cs index d81a9c01..8a4e2b90 100644 --- a/src/Exceptionless/Demystifier/EnhancedStackTrace.cs +++ b/src/Exceptionless/Demystifier/EnhancedStackTrace.cs @@ -9,7 +9,7 @@ namespace System.Diagnostics { - public partial class EnhancedStackTrace : StackTrace, IEnumerable + internal partial class EnhancedStackTrace : StackTrace, IEnumerable { public static EnhancedStackTrace Current() => new EnhancedStackTrace(new StackTrace(1 /* skip this one frame */, true)); diff --git a/src/Exceptionless/Demystifier/Enumerable/EnumerableIList.cs b/src/Exceptionless/Demystifier/Enumerable/EnumerableIList.cs index ef883df4..a2ed4570 100644 --- a/src/Exceptionless/Demystifier/Enumerable/EnumerableIList.cs +++ b/src/Exceptionless/Demystifier/Enumerable/EnumerableIList.cs @@ -3,12 +3,12 @@ namespace System.Collections.Generic.Enumerable { - public static class EnumerableIList + internal static class EnumerableIList { public static EnumerableIList Create(IList list) => new EnumerableIList(list); } - public struct EnumerableIList : IEnumerableIList, IList + internal struct EnumerableIList : IEnumerableIList, IList { private readonly IList _list; diff --git a/src/Exceptionless/Demystifier/Enumerable/EnumeratorIList.cs b/src/Exceptionless/Demystifier/Enumerable/EnumeratorIList.cs index a80ff8b6..19aa4471 100644 --- a/src/Exceptionless/Demystifier/Enumerable/EnumeratorIList.cs +++ b/src/Exceptionless/Demystifier/Enumerable/EnumeratorIList.cs @@ -3,7 +3,7 @@ namespace System.Collections.Generic.Enumerable { - public struct EnumeratorIList : IEnumerator + internal struct EnumeratorIList : IEnumerator { private readonly IList _list; private int _index; diff --git a/src/Exceptionless/Demystifier/Enumerable/IEnumerableIList.cs b/src/Exceptionless/Demystifier/Enumerable/IEnumerableIList.cs index 93f69477..17dbe3ec 100644 --- a/src/Exceptionless/Demystifier/Enumerable/IEnumerableIList.cs +++ b/src/Exceptionless/Demystifier/Enumerable/IEnumerableIList.cs @@ -3,7 +3,7 @@ namespace System.Collections.Generic.Enumerable { - interface IEnumerableIList : IEnumerable + internal interface IEnumerableIList : IEnumerable { new EnumeratorIList GetEnumerator(); } diff --git a/src/Exceptionless/Demystifier/Internal/ReflectionHelper.cs b/src/Exceptionless/Demystifier/Internal/ReflectionHelper.cs index 2cad2a08..810fa7de 100644 --- a/src/Exceptionless/Demystifier/Internal/ReflectionHelper.cs +++ b/src/Exceptionless/Demystifier/Internal/ReflectionHelper.cs @@ -10,7 +10,7 @@ namespace System.Diagnostics.Internal /// /// A helper class that contains utilities methods for dealing with reflection. /// - public static class ReflectionHelper + internal static class ReflectionHelper { private static PropertyInfo? tranformerNamesLazyPropertyInfo; diff --git a/src/Exceptionless/Demystifier/ResolvedMethod.cs b/src/Exceptionless/Demystifier/ResolvedMethod.cs index 6f095e20..81393bfc 100644 --- a/src/Exceptionless/Demystifier/ResolvedMethod.cs +++ b/src/Exceptionless/Demystifier/ResolvedMethod.cs @@ -7,7 +7,7 @@ namespace System.Diagnostics { - public class ResolvedMethod + internal class ResolvedMethod { public MethodBase? MethodBase { get; set; } diff --git a/src/Exceptionless/Demystifier/ResolvedParameter.cs b/src/Exceptionless/Demystifier/ResolvedParameter.cs index 1457d92e..027649b7 100644 --- a/src/Exceptionless/Demystifier/ResolvedParameter.cs +++ b/src/Exceptionless/Demystifier/ResolvedParameter.cs @@ -5,7 +5,7 @@ namespace System.Diagnostics { - public class ResolvedParameter + internal class ResolvedParameter { public string? Name { get; set; } diff --git a/src/Exceptionless/Demystifier/StringBuilderExtentions.cs b/src/Exceptionless/Demystifier/StringBuilderExtentions.cs index 5eeb8e08..fa5e4181 100644 --- a/src/Exceptionless/Demystifier/StringBuilderExtentions.cs +++ b/src/Exceptionless/Demystifier/StringBuilderExtentions.cs @@ -6,7 +6,7 @@ namespace System.Diagnostics { - public static class StringBuilderExtentions + internal static class StringBuilderExtentions { public static StringBuilder AppendDemystified(this StringBuilder builder, Exception exception) { diff --git a/src/Exceptionless/Demystifier/TypeNameHelper.cs b/src/Exceptionless/Demystifier/TypeNameHelper.cs index 95e59c05..4ed4b31c 100644 --- a/src/Exceptionless/Demystifier/TypeNameHelper.cs +++ b/src/Exceptionless/Demystifier/TypeNameHelper.cs @@ -7,7 +7,7 @@ namespace System.Diagnostics { // Adapted from https://github.com/aspnet/Common/blob/dev/shared/Microsoft.Extensions.TypeNameHelper.Sources/TypeNameHelper.cs - public static class TypeNameHelper + internal static class TypeNameHelper { public static readonly Dictionary BuiltInTypeNames = new Dictionary { diff --git a/src/Exceptionless/Demystifier/ValueTupleResolvedParameter.cs b/src/Exceptionless/Demystifier/ValueTupleResolvedParameter.cs index 7dacf13e..9f18ba7e 100644 --- a/src/Exceptionless/Demystifier/ValueTupleResolvedParameter.cs +++ b/src/Exceptionless/Demystifier/ValueTupleResolvedParameter.cs @@ -7,7 +7,7 @@ namespace System.Diagnostics { - public class ValueTupleResolvedParameter : ResolvedParameter + internal class ValueTupleResolvedParameter : ResolvedParameter { public IList TupleNames { get; }