From b2c110a8b33b3fdbc485d5ae3b1989ef1402e1cf Mon Sep 17 00:00:00 2001 From: George Duckett Date: Fri, 29 Dec 2017 10:57:49 +0000 Subject: [PATCH] Made TypeNameHelper public (along with _builtInTypeNames --- src/Ben.Demystifier/Internal/TypeNameHelper.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Ben.Demystifier/Internal/TypeNameHelper.cs b/src/Ben.Demystifier/Internal/TypeNameHelper.cs index 217b183..67c98f5 100644 --- a/src/Ben.Demystifier/Internal/TypeNameHelper.cs +++ b/src/Ben.Demystifier/Internal/TypeNameHelper.cs @@ -4,12 +4,12 @@ using System.Collections.Generic; using System.Text; -namespace System.Diagnostics.Internal +namespace System.Diagnostics { // Adapted from https://github.com/aspnet/Common/blob/dev/shared/Microsoft.Extensions.TypeNameHelper.Sources/TypeNameHelper.cs - internal class TypeNameHelper + public class TypeNameHelper { - private static readonly Dictionary _builtInTypeNames = new Dictionary + public static readonly Dictionary BuiltInTypeNames = new Dictionary { { typeof(void), "void" }, { typeof(bool), "bool" }, @@ -54,7 +54,7 @@ namespace System.Diagnostics.Internal { ProcessArrayType(builder, type, options); } - else if (_builtInTypeNames.TryGetValue(type, out var builtInName)) + else if (BuiltInTypeNames.TryGetValue(type, out var builtInName)) { builder.Append(builtInName); }