// See comment on ExceptionMessageKind internal static string GetMessageFromNativeResources(ExceptionMessageKind kind) { string retMesg = null; GetMessageFromNativeResources(kind, JitHelpers.GetStringHandleOnStack(ref retMesg)); return(retMesg); }
internal static String GetMessageFromNativeResources(ExceptionMessageKind kind) { switch (kind) { case ExceptionMessageKind.ThreadAbort: return(""); case ExceptionMessageKind.ThreadInterrupted: return(""); case ExceptionMessageKind.OutOfMemory: return("Out of memory"); } return(""); }
[System.Security.SecuritySafeCritical] // auto-generated internal static String GetMessageFromNativeResources(ExceptionMessageKind kind) { #if MONO switch (kind) { case ExceptionMessageKind.ThreadAbort: return(""); case ExceptionMessageKind.ThreadInterrupted: return(""); case ExceptionMessageKind.OutOfMemory: return("Out of memory"); } return(""); #else string retMesg = null; GetMessageFromNativeResources(kind, JitHelpers.GetStringHandleOnStack(ref retMesg)); return(retMesg); #endif }
[System.Security.SecuritySafeCritical] // auto-generated internal static String GetMessageFromNativeResources(ExceptionMessageKind kind) { #if MONO switch (kind) { case ExceptionMessageKind.ThreadAbort: return("Thread was being aborted."); case ExceptionMessageKind.ThreadInterrupted: return("Thread was interrupted from a waiting state."); case ExceptionMessageKind.OutOfMemory: return("Insufficient memory to continue the execution of the program."); } return(""); #else string retMesg = null; GetMessageFromNativeResources(kind, JitHelpers.GetStringHandleOnStack(ref retMesg)); return(retMesg); #endif }
private static extern void GetMessageFromNativeResources(ExceptionMessageKind kind, StringHandleOnStack retMesg);
[System.Security.SecuritySafeCritical] // auto-generated internal static String GetMessageFromNativeResources(ExceptionMessageKind kind) { string retMesg = null; GetMessageFromNativeResources(kind, JitHelpers.GetStringHandleOnStack(ref retMesg)); return retMesg; }
internal static String GetMessageFromNativeResources (ExceptionMessageKind kind) { switch (kind) { case ExceptionMessageKind.ThreadAbort: return ""; case ExceptionMessageKind.ThreadInterrupted: return ""; case ExceptionMessageKind.OutOfMemory: return "Out of memory"; } return ""; }
internal static extern String GetMessageFromNativeResources(ExceptionMessageKind kind);
internal static string GetMessageFromNativeResources(ExceptionMessageKind kind) { return(kind.ToString()); }
[System.Security.SecuritySafeCritical] // auto-generated internal static String GetMessageFromNativeResources(ExceptionMessageKind kind) { #if MONO switch (kind) { case ExceptionMessageKind.ThreadAbort: return ""; case ExceptionMessageKind.ThreadInterrupted: return ""; case ExceptionMessageKind.OutOfMemory: return "Out of memory"; } return ""; #else string retMesg = null; GetMessageFromNativeResources(kind, JitHelpers.GetStringHandleOnStack(ref retMesg)); return retMesg; #endif }
internal static string GetMessageFromNativeResources(ExceptionMessageKind kind) { return kind.ToString(); }