diff options
Diffstat (limited to 'src/mscorlib/src/System/Diagnostics/Eventing/TraceLogging/EnumHelper.cs')
-rw-r--r-- | src/mscorlib/src/System/Diagnostics/Eventing/TraceLogging/EnumHelper.cs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/mscorlib/src/System/Diagnostics/Eventing/TraceLogging/EnumHelper.cs b/src/mscorlib/src/System/Diagnostics/Eventing/TraceLogging/EnumHelper.cs deleted file mode 100644 index 7a23378bb1..0000000000 --- a/src/mscorlib/src/System/Diagnostics/Eventing/TraceLogging/EnumHelper.cs +++ /dev/null @@ -1,30 +0,0 @@ -// Licensed to the .NET Foundation under one or more agreements. -// The .NET Foundation licenses this file to you under the MIT license. -// See the LICENSE file in the project root for more information. -#if EVENTSOURCE_GENERICS -?using System; -using System.Reflection; - -#if ES_BUILD_STANDALONE -namespace Microsoft.Diagnostics.Tracing -#else -namespace System.Diagnostics.Tracing -#endif -{ - /// <summary> - /// Provides support for casting enums to their underlying type - /// from within generic context. - /// </summary> - /// <typeparam name="UnderlyingType"> - /// The underlying type of the enum. - /// </typeparam> - internal static class EnumHelper<UnderlyingType> - { - public static UnderlyingType Cast<ValueType>(ValueType value) - { - return (UnderlyingType)(object)value; - } - } - -} -#endif |