File: Internal\TypeSystem\ExceptionTypeNameFormatter.Runtime.cs
Web Access
Project: src\src\runtime\src\coreclr\nativeaot\System.Private.TypeLoader\src\System.Private.TypeLoader.csproj (System.Private.TypeLoader)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace Internal.TypeSystem
{
    public partial class ExceptionTypeNameFormatter
    {
        private static string GetTypeName(DefType type)
        {
            if (type is NoMetadata.NoMetadataType)
                return ((NoMetadata.NoMetadataType)type).NameForDiagnostics;

            return type.GetName();
        }

        private static string GetTypeNamespace(DefType type)
        {
            if (type is NoMetadata.NoMetadataType)
                return ((NoMetadata.NoMetadataType)type).NamespaceForDiagnostics;

            return type.GetNamespace();
        }
    }
}