Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Private.CoreLib/src/System/RuntimeExceptionHelpers.cs')
-rw-r--r--src/System.Private.CoreLib/src/System/RuntimeExceptionHelpers.cs22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/System.Private.CoreLib/src/System/RuntimeExceptionHelpers.cs b/src/System.Private.CoreLib/src/System/RuntimeExceptionHelpers.cs
index ec40c126d..35d954368 100644
--- a/src/System.Private.CoreLib/src/System/RuntimeExceptionHelpers.cs
+++ b/src/System.Private.CoreLib/src/System/RuntimeExceptionHelpers.cs
@@ -129,7 +129,7 @@ namespace System
}
- public static void FailFast(String message)
+ public static void FailFast(string message)
{
FailFast(message, null, RhFailFastReason.Unknown, IntPtr.Zero, IntPtr.Zero);
}
@@ -184,7 +184,7 @@ namespace System
Debug.WriteLine("Unhandled Exception: " + exception.ToString());
}
- failFastMessage = String.Format("Runtime-generated FailFast: ({0}): {1}{2}",
+ failFastMessage = string.Format("Runtime-generated FailFast: ({0}): {1}{2}",
reason.ToString(), // Explicit call to ToString() to avoid MissingMetadataException inside String.Format()
GetStringForFailFastReason(reason),
exception != null ? " [exception object available]" : "");
@@ -208,7 +208,7 @@ namespace System
if (!minimalFailFast)
{
- String output = (exception != null) ?
+ string output = (exception != null) ?
"Unhandled Exception: " + exception.ToString()
: message;
DeveloperExperience.Default.WriteLine(output);
@@ -309,10 +309,10 @@ namespace System
public struct ExceptionMetadataStruct
{
- public UInt32 ExceptionId { get; set; } // Id assigned to the exception. May not be contiguous or start at 0.
- public UInt32 InnerExceptionId { get; set; } // ID of the inner exception or 0xFFFFFFFF for 'no inner exception'
- public UInt32 ThreadId { get; set; } // Managed thread ID the eception was thrown on
- public Int32 NestingLevel { get; set; } // If multiple exceptions are currently active on a thread, this gives the ordering for them.
+ public uint ExceptionId { get; set; } // Id assigned to the exception. May not be contiguous or start at 0.
+ public uint InnerExceptionId { get; set; } // ID of the inner exception or 0xFFFFFFFF for 'no inner exception'
+ public uint ThreadId { get; set; } // Managed thread ID the eception was thrown on
+ public int NestingLevel { get; set; } // If multiple exceptions are currently active on a thread, this gives the ordering for them.
// The highest number is the most recent exception. -1 means the exception is not currently in flight
// (but it may still be an InnerException).
public IntPtr ExceptionCCWPtr { get; set; } // If the exception was thrown in an interop scenario, this contains the CCW pointer, otherwise, IntPtr.Zero
@@ -390,7 +390,7 @@ namespace System
private static void SerializeExceptionsForDump(Exception currentException, IntPtr exceptionCCWPtr, LowLevelList<byte[]> serializedExceptions)
{
- const UInt32 NoInnerExceptionValue = 0xFFFFFFFF;
+ const uint NoInnerExceptionValue = 0xFFFFFFFF;
// Approximate upper size limit for the serialized exceptions (but we'll always serialize currentException)
// If we hit the limit, because we serialize in arbitrary order, there may be missing InnerExceptions or nested exceptions.
@@ -442,10 +442,10 @@ namespace System
{
ExceptionData exceptionData = s_exceptionDataTable.GetOrCreateValue(exceptions[i]);
- exceptionData.ExceptionMetadata.ExceptionId = (UInt32)System.Threading.Interlocked.Increment(ref s_currentExceptionId);
+ exceptionData.ExceptionMetadata.ExceptionId = (uint)System.Threading.Interlocked.Increment(ref s_currentExceptionId);
if (exceptionData.ExceptionMetadata.ExceptionId == NoInnerExceptionValue)
{
- exceptionData.ExceptionMetadata.ExceptionId = (UInt32)System.Threading.Interlocked.Increment(ref s_currentExceptionId);
+ exceptionData.ExceptionMetadata.ExceptionId = (uint)System.Threading.Interlocked.Increment(ref s_currentExceptionId);
}
exceptionData.ExceptionMetadata.ThreadId = currentThreadId;
@@ -462,7 +462,7 @@ namespace System
}
// Only match the CCW pointer up to the current exception
- if (Object.ReferenceEquals(exceptions[i], currentException))
+ if (object.ReferenceEquals(exceptions[i], currentException))
{
exceptionData.ExceptionMetadata.ExceptionCCWPtr = exceptionCCWPtr;
}