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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornél Pál <kornelpal@gmail.com>2008-11-15 21:53:24 +0300
committerKornél Pál <kornelpal@gmail.com>2008-11-15 21:53:24 +0300
commitb855d161ac6eb623e31bc0298dd58d4fa2ba6fa4 (patch)
tree34ed6e090ed85f0b3aff43b05e20dc151b4c3001 /mcs/class/corlib/System/Convert.cs
parent6814304afb25aacb661ba0932d9efe6868c1f243 (diff)
Convert.cs: Removed useless check from ToChar (ushort).
svn path=/trunk/mcs/; revision=118940
Diffstat (limited to 'mcs/class/corlib/System/Convert.cs')
-rw-r--r--mcs/class/corlib/System/Convert.cs4
1 files changed, 0 insertions, 4 deletions
diff --git a/mcs/class/corlib/System/Convert.cs b/mcs/class/corlib/System/Convert.cs
index 8ccd85002b8..6f3e9e17fc6 100644
--- a/mcs/class/corlib/System/Convert.cs
+++ b/mcs/class/corlib/System/Convert.cs
@@ -681,10 +681,6 @@ namespace System {
[CLSCompliant (false)]
public static char ToChar (ushort value)
{
- if (value > Char.MaxValue)
- throw new OverflowException (Locale.GetText (
- "Value is greater than Char.MaxValue"));
-
return (char)value;
}