X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mono.git;a=blobdiff_plain;f=mcs%2Fclass%2Freferencesource%2Fmscorlib%2Fsystem%2Fthrowhelper.cs;fp=mcs%2Fclass%2Freferencesource%2Fmscorlib%2Fsystem%2Fthrowhelper.cs;h=4bb821293ccc6d256db61ac20d3d35cad2d95278;hp=a47c670b31af5841940e2119a8155f4747e7b440;hb=411a37af27905eaa44dac1a31f6387a11c0b0244;hpb=3e9d7d6e9cf8dc33eb29c497c350a1cd7df3a057 diff --git a/mcs/class/referencesource/mscorlib/system/throwhelper.cs b/mcs/class/referencesource/mscorlib/system/throwhelper.cs index a47c670b31a..4bb821293cc 100644 --- a/mcs/class/referencesource/mscorlib/system/throwhelper.cs +++ b/mcs/class/referencesource/mscorlib/system/throwhelper.cs @@ -51,7 +51,7 @@ namespace System { using System.Diagnostics.Contracts; [Pure] - internal static class ThrowHelper { + internal static partial class ThrowHelper { internal static void ThrowArgumentOutOfRangeException() { ThrowArgumentOutOfRangeException(ExceptionArgument.index, ExceptionResource.ArgumentOutOfRange_Index); } @@ -76,6 +76,7 @@ namespace System { throw new ArgumentException(Environment.GetResourceString(GetResourceName(resource)), GetArgumentName(argument)); } +#if !MONO internal static void ThrowArgumentNullException(ExceptionArgument argument) { throw new ArgumentNullException(GetArgumentName(argument)); } @@ -83,6 +84,7 @@ namespace System { internal static void ThrowArgumentOutOfRangeException(ExceptionArgument argument) { throw new ArgumentOutOfRangeException(GetArgumentName(argument)); } +#endif internal static void ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) { @@ -468,6 +470,9 @@ namespace System { options, view, sourceBytesToCopy, +#if MONO + start, +#endif } //