Bug 15574. XML deserialization recursion: add array type to known_types?
[mono.git] / mcs / class / corlib / System / Nullable.cs
index b8ac671d69978cf8fbb0eb06db8344be9e803a99..86a7bd7d4a4df5a183681ddc2479a6c973790983 100644 (file)
@@ -140,7 +140,7 @@ namespace System
 
                public T GetValueOrDefault ()
                {
-                       return has_value ? value : default (T);
+                       return value;
                }
 
                public T GetValueOrDefault (T defaultValue)