diff options
Diffstat (limited to 'src/mscorlib/src/System/Globalization/GlobalizationAssembly.cs')
-rw-r--r-- | src/mscorlib/src/System/Globalization/GlobalizationAssembly.cs | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/src/mscorlib/src/System/Globalization/GlobalizationAssembly.cs b/src/mscorlib/src/System/Globalization/GlobalizationAssembly.cs deleted file mode 100644 index 956543524a..0000000000 --- a/src/mscorlib/src/System/Globalization/GlobalizationAssembly.cs +++ /dev/null @@ -1,64 +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. - - -using System; -using System.Reflection; -using System.Collections; -using System.Collections.Generic; -using System.Threading; -using System.Security; -using System.Runtime.CompilerServices; -using System.Runtime.ConstrainedExecution; -using System.Runtime.Versioning; -using System.IO; -using System.Diagnostics; -using System.Diagnostics.Contracts; - -namespace System.Globalization -{ - /*=================================GlobalizationAssembly========================== - ** - ** This class provides the table loading wrapper that calls GetManifestResourceStream - ** - ** It used to provide an idea for sort versioning, but that proved to not work - ** - ============================================================================*/ - internal sealed class GlobalizationAssembly - { - // ---------------------------------------------------------------------------------------------------- - // - // Instance data members and instance methods. - // - // ---------------------------------------------------------------------------------------------------- - internal unsafe static byte* GetGlobalizationResourceBytePtr(Assembly assembly, String tableName) - { - Debug.Assert(assembly != null, "assembly can not be null. This should be generally the " + System.CoreLib.Name + " assembly."); - Debug.Assert(tableName != null, "table name can not be null"); - - Stream stream = assembly.GetManifestResourceStream(tableName); - UnmanagedMemoryStream bytesStream = stream as UnmanagedMemoryStream; - if (bytesStream != null) - { - byte* bytes = bytesStream.PositionPointer; - if (bytes != null) - { - return (bytes); - } - } - - Debug.Assert( - false, - String.Format( - CultureInfo.CurrentCulture, - "Didn't get the resource table {0} for System.Globalization from {1}", - tableName, - assembly)); - - // We can not continue if we can't get the resource. - throw new InvalidOperationException(); - } - } -} - |