diff options
Diffstat (limited to 'src/mscorlib/src/System/Globalization/GlobalizationAssembly.cs')
-rw-r--r-- | src/mscorlib/src/System/Globalization/GlobalizationAssembly.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mscorlib/src/System/Globalization/GlobalizationAssembly.cs b/src/mscorlib/src/System/Globalization/GlobalizationAssembly.cs index 4de3fd399b..0810d67b59 100644 --- a/src/mscorlib/src/System/Globalization/GlobalizationAssembly.cs +++ b/src/mscorlib/src/System/Globalization/GlobalizationAssembly.cs @@ -15,6 +15,7 @@ namespace System.Globalization { using System.Runtime.ConstrainedExecution; using System.Runtime.Versioning; using System.IO; + using System.Diagnostics; using System.Diagnostics.Contracts; @@ -32,10 +33,9 @@ namespace System.Globalization { // Instance data members and instance methods. // // ---------------------------------------------------------------------------------------------------- - [System.Security.SecurityCritical] // auto-generated internal unsafe static byte* GetGlobalizationResourceBytePtr(Assembly assembly, String tableName) { - Contract.Assert(assembly != null, "assembly can not be null. This should be generally the "+System.CoreLib.Name+" assembly."); - Contract.Assert(tableName != null, "table name can not be null"); + 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; @@ -46,7 +46,7 @@ namespace System.Globalization { } } - Contract.Assert( + Debug.Assert( false, String.Format( CultureInfo.CurrentCulture, |