From d4a6cf7bc9d1b5ccbf671f1c8fae1b4f83027cbd Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Sat, 25 Mar 2017 08:30:40 -0700 Subject: [PATCH] Delete pointless comments (#10479) --- src/mscorlib/shared/System/CharEnumerator.cs | 1 - src/mscorlib/shared/System/DateTime.cs | 15 --------------- .../shared/System/Reflection/MethodImplAttributes.cs | 1 - src/mscorlib/src/System/Boolean.cs | 15 --------------- src/mscorlib/src/System/Byte.cs | 15 --------------- src/mscorlib/src/System/Char.cs | 15 --------------- src/mscorlib/src/System/Collections/Generic/List.cs | 1 - src/mscorlib/src/System/DateTime.CoreCLR.cs | 4 ++++ src/mscorlib/src/System/Decimal.cs | 15 --------------- src/mscorlib/src/System/Double.cs | 15 --------------- src/mscorlib/src/System/Enum.cs | 15 --------------- src/mscorlib/src/System/Int16.cs | 15 --------------- src/mscorlib/src/System/Int32.cs | 15 --------------- src/mscorlib/src/System/Int64.cs | 15 --------------- src/mscorlib/src/System/Resources/ResourceSet.cs | 1 - .../Runtime/Serialization/SerializationInfoEnumerator.cs | 1 - src/mscorlib/src/System/SByte.cs | 15 --------------- src/mscorlib/src/System/Single.cs | 15 --------------- src/mscorlib/src/System/String.cs | 16 ---------------- src/mscorlib/src/System/Threading/Overlapped.cs | 1 - src/mscorlib/src/System/UInt16.cs | 15 --------------- src/mscorlib/src/System/UInt32.cs | 15 --------------- src/mscorlib/src/System/UInt64.cs | 15 --------------- 23 files changed, 4 insertions(+), 247 deletions(-) diff --git a/src/mscorlib/shared/System/CharEnumerator.cs b/src/mscorlib/shared/System/CharEnumerator.cs index 689ed7e..ea9915a 100644 --- a/src/mscorlib/shared/System/CharEnumerator.cs +++ b/src/mscorlib/shared/System/CharEnumerator.cs @@ -54,7 +54,6 @@ namespace System _str = null; } - /// Object IEnumerator.Current { get { return Current; } diff --git a/src/mscorlib/shared/System/DateTime.cs b/src/mscorlib/shared/System/DateTime.cs index 5e6332d..1bc5fd9 100644 --- a/src/mscorlib/shared/System/DateTime.cs +++ b/src/mscorlib/shared/System/DateTime.cs @@ -1403,91 +1403,76 @@ namespace System } - /// bool IConvertible.ToBoolean(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "DateTime", "Boolean")); } - /// char IConvertible.ToChar(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "DateTime", "Char")); } - /// sbyte IConvertible.ToSByte(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "DateTime", "SByte")); } - /// byte IConvertible.ToByte(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "DateTime", "Byte")); } - /// short IConvertible.ToInt16(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "DateTime", "Int16")); } - /// ushort IConvertible.ToUInt16(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "DateTime", "UInt16")); } - /// int IConvertible.ToInt32(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "DateTime", "Int32")); } - /// uint IConvertible.ToUInt32(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "DateTime", "UInt32")); } - /// long IConvertible.ToInt64(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "DateTime", "Int64")); } - /// ulong IConvertible.ToUInt64(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "DateTime", "UInt64")); } - /// float IConvertible.ToSingle(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "DateTime", "Single")); } - /// double IConvertible.ToDouble(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "DateTime", "Double")); } - /// Decimal IConvertible.ToDecimal(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "DateTime", "Decimal")); } - /// DateTime IConvertible.ToDateTime(IFormatProvider provider) { return this; } - /// Object IConvertible.ToType(Type type, IFormatProvider provider) { return Convert.DefaultToType((IConvertible)this, type, provider); diff --git a/src/mscorlib/shared/System/Reflection/MethodImplAttributes.cs b/src/mscorlib/shared/System/Reflection/MethodImplAttributes.cs index 0a67e2c..a1ed326 100644 --- a/src/mscorlib/shared/System/Reflection/MethodImplAttributes.cs +++ b/src/mscorlib/shared/System/Reflection/MethodImplAttributes.cs @@ -11,7 +11,6 @@ namespace System.Reflection CodeTypeMask = 0x0003, // Flags about code type. IL = 0x0000, // Method impl is IL. Native = 0x0001, // Method impl is native. - /// OPTIL = 0x0002, // Method impl is OPTIL Runtime = 0x0003, // Method impl is provided by the runtime. // end code impl mask diff --git a/src/mscorlib/src/System/Boolean.cs b/src/mscorlib/src/System/Boolean.cs index 6be8e31..fe25e22 100644 --- a/src/mscorlib/src/System/Boolean.cs +++ b/src/mscorlib/src/System/Boolean.cs @@ -259,91 +259,76 @@ namespace System } - /// bool IConvertible.ToBoolean(IFormatProvider provider) { return m_value; } - /// char IConvertible.ToChar(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Boolean", "Char")); } - /// sbyte IConvertible.ToSByte(IFormatProvider provider) { return Convert.ToSByte(m_value); } - /// byte IConvertible.ToByte(IFormatProvider provider) { return Convert.ToByte(m_value); } - /// short IConvertible.ToInt16(IFormatProvider provider) { return Convert.ToInt16(m_value); } - /// ushort IConvertible.ToUInt16(IFormatProvider provider) { return Convert.ToUInt16(m_value); } - /// int IConvertible.ToInt32(IFormatProvider provider) { return Convert.ToInt32(m_value); } - /// uint IConvertible.ToUInt32(IFormatProvider provider) { return Convert.ToUInt32(m_value); } - /// long IConvertible.ToInt64(IFormatProvider provider) { return Convert.ToInt64(m_value); } - /// ulong IConvertible.ToUInt64(IFormatProvider provider) { return Convert.ToUInt64(m_value); } - /// float IConvertible.ToSingle(IFormatProvider provider) { return Convert.ToSingle(m_value); } - /// double IConvertible.ToDouble(IFormatProvider provider) { return Convert.ToDouble(m_value); } - /// Decimal IConvertible.ToDecimal(IFormatProvider provider) { return Convert.ToDecimal(m_value); } - /// DateTime IConvertible.ToDateTime(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Boolean", "DateTime")); } - /// Object IConvertible.ToType(Type type, IFormatProvider provider) { return Convert.DefaultToType((IConvertible)this, type, provider); diff --git a/src/mscorlib/src/System/Byte.cs b/src/mscorlib/src/System/Byte.cs index e041af2..27fdcd7 100644 --- a/src/mscorlib/src/System/Byte.cs +++ b/src/mscorlib/src/System/Byte.cs @@ -195,91 +195,76 @@ namespace System } - /// bool IConvertible.ToBoolean(IFormatProvider provider) { return Convert.ToBoolean(m_value); } - /// char IConvertible.ToChar(IFormatProvider provider) { return Convert.ToChar(m_value); } - /// sbyte IConvertible.ToSByte(IFormatProvider provider) { return Convert.ToSByte(m_value); } - /// byte IConvertible.ToByte(IFormatProvider provider) { return m_value; } - /// short IConvertible.ToInt16(IFormatProvider provider) { return Convert.ToInt16(m_value); } - /// ushort IConvertible.ToUInt16(IFormatProvider provider) { return Convert.ToUInt16(m_value); } - /// int IConvertible.ToInt32(IFormatProvider provider) { return Convert.ToInt32(m_value); } - /// uint IConvertible.ToUInt32(IFormatProvider provider) { return Convert.ToUInt32(m_value); } - /// long IConvertible.ToInt64(IFormatProvider provider) { return Convert.ToInt64(m_value); } - /// ulong IConvertible.ToUInt64(IFormatProvider provider) { return Convert.ToUInt64(m_value); } - /// float IConvertible.ToSingle(IFormatProvider provider) { return Convert.ToSingle(m_value); } - /// double IConvertible.ToDouble(IFormatProvider provider) { return Convert.ToDouble(m_value); } - /// Decimal IConvertible.ToDecimal(IFormatProvider provider) { return Convert.ToDecimal(m_value); } - /// DateTime IConvertible.ToDateTime(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Byte", "DateTime")); } - /// Object IConvertible.ToType(Type type, IFormatProvider provider) { return Convert.DefaultToType((IConvertible)this, type, provider); diff --git a/src/mscorlib/src/System/Char.cs b/src/mscorlib/src/System/Char.cs index 5fa886c..e6b5925 100644 --- a/src/mscorlib/src/System/Char.cs +++ b/src/mscorlib/src/System/Char.cs @@ -472,91 +472,76 @@ namespace System } - /// bool IConvertible.ToBoolean(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Boolean")); } - /// char IConvertible.ToChar(IFormatProvider provider) { return m_value; } - /// sbyte IConvertible.ToSByte(IFormatProvider provider) { return Convert.ToSByte(m_value); } - /// byte IConvertible.ToByte(IFormatProvider provider) { return Convert.ToByte(m_value); } - /// short IConvertible.ToInt16(IFormatProvider provider) { return Convert.ToInt16(m_value); } - /// ushort IConvertible.ToUInt16(IFormatProvider provider) { return Convert.ToUInt16(m_value); } - /// int IConvertible.ToInt32(IFormatProvider provider) { return Convert.ToInt32(m_value); } - /// uint IConvertible.ToUInt32(IFormatProvider provider) { return Convert.ToUInt32(m_value); } - /// long IConvertible.ToInt64(IFormatProvider provider) { return Convert.ToInt64(m_value); } - /// ulong IConvertible.ToUInt64(IFormatProvider provider) { return Convert.ToUInt64(m_value); } - /// float IConvertible.ToSingle(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Single")); } - /// double IConvertible.ToDouble(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Double")); } - /// Decimal IConvertible.ToDecimal(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "Decimal")); } - /// DateTime IConvertible.ToDateTime(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Char", "DateTime")); } - /// Object IConvertible.ToType(Type type, IFormatProvider provider) { return Convert.DefaultToType((IConvertible)this, type, provider); diff --git a/src/mscorlib/src/System/Collections/Generic/List.cs b/src/mscorlib/src/System/Collections/Generic/List.cs index fc47b93..67d1668 100644 --- a/src/mscorlib/src/System/Collections/Generic/List.cs +++ b/src/mscorlib/src/System/Collections/Generic/List.cs @@ -675,7 +675,6 @@ namespace System.Collections.Generic return new Enumerator(this); } - /// IEnumerator IEnumerable.GetEnumerator() { return new Enumerator(this); diff --git a/src/mscorlib/src/System/DateTime.CoreCLR.cs b/src/mscorlib/src/System/DateTime.CoreCLR.cs index 0114203..69c5956 100644 --- a/src/mscorlib/src/System/DateTime.CoreCLR.cs +++ b/src/mscorlib/src/System/DateTime.CoreCLR.cs @@ -1,3 +1,7 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + using System.Diagnostics.Contracts; using System.Runtime.CompilerServices; diff --git a/src/mscorlib/src/System/Decimal.cs b/src/mscorlib/src/System/Decimal.cs index 7245396..ce59a99 100644 --- a/src/mscorlib/src/System/Decimal.cs +++ b/src/mscorlib/src/System/Decimal.cs @@ -1230,92 +1230,77 @@ namespace System return TypeCode.Decimal; } - /// bool IConvertible.ToBoolean(IFormatProvider provider) { return Convert.ToBoolean(this); } - /// char IConvertible.ToChar(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Decimal", "Char")); } - /// sbyte IConvertible.ToSByte(IFormatProvider provider) { return Convert.ToSByte(this); } - /// byte IConvertible.ToByte(IFormatProvider provider) { return Convert.ToByte(this); } - /// short IConvertible.ToInt16(IFormatProvider provider) { return Convert.ToInt16(this); } - /// ushort IConvertible.ToUInt16(IFormatProvider provider) { return Convert.ToUInt16(this); } - /// int IConvertible.ToInt32(IFormatProvider provider) { return Convert.ToInt32(this); } - /// uint IConvertible.ToUInt32(IFormatProvider provider) { return Convert.ToUInt32(this); } - /// long IConvertible.ToInt64(IFormatProvider provider) { return Convert.ToInt64(this); } - /// ulong IConvertible.ToUInt64(IFormatProvider provider) { return Convert.ToUInt64(this); } - /// float IConvertible.ToSingle(IFormatProvider provider) { return Convert.ToSingle(this); } - /// double IConvertible.ToDouble(IFormatProvider provider) { return Convert.ToDouble(this); } - /// Decimal IConvertible.ToDecimal(IFormatProvider provider) { return this; } - /// DateTime IConvertible.ToDateTime(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Decimal", "DateTime")); } - /// Object IConvertible.ToType(Type type, IFormatProvider provider) { return Convert.DefaultToType((IConvertible)this, type, provider); diff --git a/src/mscorlib/src/System/Double.cs b/src/mscorlib/src/System/Double.cs index b6e0012..f2c5cec 100644 --- a/src/mscorlib/src/System/Double.cs +++ b/src/mscorlib/src/System/Double.cs @@ -321,91 +321,76 @@ namespace System return TypeCode.Double; } - /// bool IConvertible.ToBoolean(IFormatProvider provider) { return Convert.ToBoolean(m_value); } - /// char IConvertible.ToChar(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Double", "Char")); } - /// sbyte IConvertible.ToSByte(IFormatProvider provider) { return Convert.ToSByte(m_value); } - /// byte IConvertible.ToByte(IFormatProvider provider) { return Convert.ToByte(m_value); } - /// short IConvertible.ToInt16(IFormatProvider provider) { return Convert.ToInt16(m_value); } - /// ushort IConvertible.ToUInt16(IFormatProvider provider) { return Convert.ToUInt16(m_value); } - /// int IConvertible.ToInt32(IFormatProvider provider) { return Convert.ToInt32(m_value); } - /// uint IConvertible.ToUInt32(IFormatProvider provider) { return Convert.ToUInt32(m_value); } - /// long IConvertible.ToInt64(IFormatProvider provider) { return Convert.ToInt64(m_value); } - /// ulong IConvertible.ToUInt64(IFormatProvider provider) { return Convert.ToUInt64(m_value); } - /// float IConvertible.ToSingle(IFormatProvider provider) { return Convert.ToSingle(m_value); } - /// double IConvertible.ToDouble(IFormatProvider provider) { return m_value; } - /// Decimal IConvertible.ToDecimal(IFormatProvider provider) { return Convert.ToDecimal(m_value); } - /// DateTime IConvertible.ToDateTime(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Double", "DateTime")); } - /// Object IConvertible.ToType(Type type, IFormatProvider provider) { return Convert.DefaultToType((IConvertible)this, type, provider); diff --git a/src/mscorlib/src/System/Enum.cs b/src/mscorlib/src/System/Enum.cs index cf26a33..2403b6a 100644 --- a/src/mscorlib/src/System/Enum.cs +++ b/src/mscorlib/src/System/Enum.cs @@ -1006,91 +1006,76 @@ namespace System } } - /// bool IConvertible.ToBoolean(IFormatProvider provider) { return Convert.ToBoolean(GetValue(), CultureInfo.CurrentCulture); } - /// char IConvertible.ToChar(IFormatProvider provider) { return Convert.ToChar(GetValue(), CultureInfo.CurrentCulture); } - /// sbyte IConvertible.ToSByte(IFormatProvider provider) { return Convert.ToSByte(GetValue(), CultureInfo.CurrentCulture); } - /// byte IConvertible.ToByte(IFormatProvider provider) { return Convert.ToByte(GetValue(), CultureInfo.CurrentCulture); } - /// short IConvertible.ToInt16(IFormatProvider provider) { return Convert.ToInt16(GetValue(), CultureInfo.CurrentCulture); } - /// ushort IConvertible.ToUInt16(IFormatProvider provider) { return Convert.ToUInt16(GetValue(), CultureInfo.CurrentCulture); } - /// int IConvertible.ToInt32(IFormatProvider provider) { return Convert.ToInt32(GetValue(), CultureInfo.CurrentCulture); } - /// uint IConvertible.ToUInt32(IFormatProvider provider) { return Convert.ToUInt32(GetValue(), CultureInfo.CurrentCulture); } - /// long IConvertible.ToInt64(IFormatProvider provider) { return Convert.ToInt64(GetValue(), CultureInfo.CurrentCulture); } - /// ulong IConvertible.ToUInt64(IFormatProvider provider) { return Convert.ToUInt64(GetValue(), CultureInfo.CurrentCulture); } - /// float IConvertible.ToSingle(IFormatProvider provider) { return Convert.ToSingle(GetValue(), CultureInfo.CurrentCulture); } - /// double IConvertible.ToDouble(IFormatProvider provider) { return Convert.ToDouble(GetValue(), CultureInfo.CurrentCulture); } - /// Decimal IConvertible.ToDecimal(IFormatProvider provider) { return Convert.ToDecimal(GetValue(), CultureInfo.CurrentCulture); } - /// DateTime IConvertible.ToDateTime(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Enum", "DateTime")); } - /// Object IConvertible.ToType(Type type, IFormatProvider provider) { return Convert.DefaultToType((IConvertible)this, type, provider); diff --git a/src/mscorlib/src/System/Int16.cs b/src/mscorlib/src/System/Int16.cs index e05ce44..69f71af 100644 --- a/src/mscorlib/src/System/Int16.cs +++ b/src/mscorlib/src/System/Int16.cs @@ -213,91 +213,76 @@ namespace System } - /// bool IConvertible.ToBoolean(IFormatProvider provider) { return Convert.ToBoolean(m_value); } - /// char IConvertible.ToChar(IFormatProvider provider) { return Convert.ToChar(m_value); } - /// sbyte IConvertible.ToSByte(IFormatProvider provider) { return Convert.ToSByte(m_value); } - /// byte IConvertible.ToByte(IFormatProvider provider) { return Convert.ToByte(m_value); } - /// short IConvertible.ToInt16(IFormatProvider provider) { return m_value; } - /// ushort IConvertible.ToUInt16(IFormatProvider provider) { return Convert.ToUInt16(m_value); } - /// int IConvertible.ToInt32(IFormatProvider provider) { return Convert.ToInt32(m_value); } - /// uint IConvertible.ToUInt32(IFormatProvider provider) { return Convert.ToUInt32(m_value); } - /// long IConvertible.ToInt64(IFormatProvider provider) { return Convert.ToInt64(m_value); } - /// ulong IConvertible.ToUInt64(IFormatProvider provider) { return Convert.ToUInt64(m_value); } - /// float IConvertible.ToSingle(IFormatProvider provider) { return Convert.ToSingle(m_value); } - /// double IConvertible.ToDouble(IFormatProvider provider) { return Convert.ToDouble(m_value); } - /// Decimal IConvertible.ToDecimal(IFormatProvider provider) { return Convert.ToDecimal(m_value); } - /// DateTime IConvertible.ToDateTime(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Int16", "DateTime")); } - /// Object IConvertible.ToType(Type type, IFormatProvider provider) { return Convert.DefaultToType((IConvertible)this, type, provider); diff --git a/src/mscorlib/src/System/Int32.cs b/src/mscorlib/src/System/Int32.cs index 70a2a07..90b70a9 100644 --- a/src/mscorlib/src/System/Int32.cs +++ b/src/mscorlib/src/System/Int32.cs @@ -175,91 +175,76 @@ namespace System return TypeCode.Int32; } - /// bool IConvertible.ToBoolean(IFormatProvider provider) { return Convert.ToBoolean(m_value); } - /// char IConvertible.ToChar(IFormatProvider provider) { return Convert.ToChar(m_value); } - /// sbyte IConvertible.ToSByte(IFormatProvider provider) { return Convert.ToSByte(m_value); } - /// byte IConvertible.ToByte(IFormatProvider provider) { return Convert.ToByte(m_value); } - /// short IConvertible.ToInt16(IFormatProvider provider) { return Convert.ToInt16(m_value); } - /// ushort IConvertible.ToUInt16(IFormatProvider provider) { return Convert.ToUInt16(m_value); } - /// int IConvertible.ToInt32(IFormatProvider provider) { return m_value; } - /// uint IConvertible.ToUInt32(IFormatProvider provider) { return Convert.ToUInt32(m_value); } - /// long IConvertible.ToInt64(IFormatProvider provider) { return Convert.ToInt64(m_value); } - /// ulong IConvertible.ToUInt64(IFormatProvider provider) { return Convert.ToUInt64(m_value); } - /// float IConvertible.ToSingle(IFormatProvider provider) { return Convert.ToSingle(m_value); } - /// double IConvertible.ToDouble(IFormatProvider provider) { return Convert.ToDouble(m_value); } - /// Decimal IConvertible.ToDecimal(IFormatProvider provider) { return Convert.ToDecimal(m_value); } - /// DateTime IConvertible.ToDateTime(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Int32", "DateTime")); } - /// Object IConvertible.ToType(Type type, IFormatProvider provider) { return Convert.DefaultToType((IConvertible)this, type, provider); diff --git a/src/mscorlib/src/System/Int64.cs b/src/mscorlib/src/System/Int64.cs index 56d01a5..3d64362 100644 --- a/src/mscorlib/src/System/Int64.cs +++ b/src/mscorlib/src/System/Int64.cs @@ -154,91 +154,76 @@ namespace System return TypeCode.Int64; } - /// bool IConvertible.ToBoolean(IFormatProvider provider) { return Convert.ToBoolean(m_value); } - /// char IConvertible.ToChar(IFormatProvider provider) { return Convert.ToChar(m_value); } - /// sbyte IConvertible.ToSByte(IFormatProvider provider) { return Convert.ToSByte(m_value); } - /// byte IConvertible.ToByte(IFormatProvider provider) { return Convert.ToByte(m_value); } - /// short IConvertible.ToInt16(IFormatProvider provider) { return Convert.ToInt16(m_value); } - /// ushort IConvertible.ToUInt16(IFormatProvider provider) { return Convert.ToUInt16(m_value); } - /// int IConvertible.ToInt32(IFormatProvider provider) { return Convert.ToInt32(m_value); } - /// uint IConvertible.ToUInt32(IFormatProvider provider) { return Convert.ToUInt32(m_value); } - /// long IConvertible.ToInt64(IFormatProvider provider) { return m_value; } - /// ulong IConvertible.ToUInt64(IFormatProvider provider) { return Convert.ToUInt64(m_value); } - /// float IConvertible.ToSingle(IFormatProvider provider) { return Convert.ToSingle(m_value); } - /// double IConvertible.ToDouble(IFormatProvider provider) { return Convert.ToDouble(m_value); } - /// Decimal IConvertible.ToDecimal(IFormatProvider provider) { return Convert.ToDecimal(m_value); } - /// DateTime IConvertible.ToDateTime(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Int64", "DateTime")); } - /// Object IConvertible.ToType(Type type, IFormatProvider provider) { return Convert.DefaultToType((IConvertible)this, type, provider); diff --git a/src/mscorlib/src/System/Resources/ResourceSet.cs b/src/mscorlib/src/System/Resources/ResourceSet.cs index 24f9184..8775f64 100644 --- a/src/mscorlib/src/System/Resources/ResourceSet.cs +++ b/src/mscorlib/src/System/Resources/ResourceSet.cs @@ -186,7 +186,6 @@ namespace System.Resources return GetEnumeratorHelper(); } - /// IEnumerator IEnumerable.GetEnumerator() { return GetEnumeratorHelper(); diff --git a/src/mscorlib/src/System/Runtime/Serialization/SerializationInfoEnumerator.cs b/src/mscorlib/src/System/Runtime/Serialization/SerializationInfoEnumerator.cs index 615b128..791f7a8 100644 --- a/src/mscorlib/src/System/Runtime/Serialization/SerializationInfoEnumerator.cs +++ b/src/mscorlib/src/System/Runtime/Serialization/SerializationInfoEnumerator.cs @@ -109,7 +109,6 @@ namespace System.Runtime.Serialization return m_current; } - /// Object IEnumerator.Current { //Actually returns a SerializationEntry get diff --git a/src/mscorlib/src/System/SByte.cs b/src/mscorlib/src/System/SByte.cs index 93f5387..2f1b2da 100644 --- a/src/mscorlib/src/System/SByte.cs +++ b/src/mscorlib/src/System/SByte.cs @@ -222,91 +222,76 @@ namespace System } - /// bool IConvertible.ToBoolean(IFormatProvider provider) { return Convert.ToBoolean(m_value); } - /// char IConvertible.ToChar(IFormatProvider provider) { return Convert.ToChar(m_value); } - /// sbyte IConvertible.ToSByte(IFormatProvider provider) { return m_value; } - /// byte IConvertible.ToByte(IFormatProvider provider) { return Convert.ToByte(m_value); } - /// short IConvertible.ToInt16(IFormatProvider provider) { return Convert.ToInt16(m_value); } - /// ushort IConvertible.ToUInt16(IFormatProvider provider) { return Convert.ToUInt16(m_value); } - /// int IConvertible.ToInt32(IFormatProvider provider) { return m_value; } - /// uint IConvertible.ToUInt32(IFormatProvider provider) { return Convert.ToUInt32(m_value); } - /// long IConvertible.ToInt64(IFormatProvider provider) { return Convert.ToInt64(m_value); } - /// ulong IConvertible.ToUInt64(IFormatProvider provider) { return Convert.ToUInt64(m_value); } - /// float IConvertible.ToSingle(IFormatProvider provider) { return Convert.ToSingle(m_value); } - /// double IConvertible.ToDouble(IFormatProvider provider) { return Convert.ToDouble(m_value); } - /// Decimal IConvertible.ToDecimal(IFormatProvider provider) { return Convert.ToDecimal(m_value); } - /// DateTime IConvertible.ToDateTime(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "SByte", "DateTime")); } - /// Object IConvertible.ToType(Type type, IFormatProvider provider) { return Convert.DefaultToType((IConvertible)this, type, provider); diff --git a/src/mscorlib/src/System/Single.cs b/src/mscorlib/src/System/Single.cs index 4fb6ae0..1c39df7 100644 --- a/src/mscorlib/src/System/Single.cs +++ b/src/mscorlib/src/System/Single.cs @@ -297,91 +297,76 @@ namespace System } - /// bool IConvertible.ToBoolean(IFormatProvider provider) { return Convert.ToBoolean(m_value); } - /// char IConvertible.ToChar(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Single", "Char")); } - /// sbyte IConvertible.ToSByte(IFormatProvider provider) { return Convert.ToSByte(m_value); } - /// byte IConvertible.ToByte(IFormatProvider provider) { return Convert.ToByte(m_value); } - /// short IConvertible.ToInt16(IFormatProvider provider) { return Convert.ToInt16(m_value); } - /// ushort IConvertible.ToUInt16(IFormatProvider provider) { return Convert.ToUInt16(m_value); } - /// int IConvertible.ToInt32(IFormatProvider provider) { return Convert.ToInt32(m_value); } - /// uint IConvertible.ToUInt32(IFormatProvider provider) { return Convert.ToUInt32(m_value); } - /// long IConvertible.ToInt64(IFormatProvider provider) { return Convert.ToInt64(m_value); } - /// ulong IConvertible.ToUInt64(IFormatProvider provider) { return Convert.ToUInt64(m_value); } - /// float IConvertible.ToSingle(IFormatProvider provider) { return m_value; } - /// double IConvertible.ToDouble(IFormatProvider provider) { return Convert.ToDouble(m_value); } - /// Decimal IConvertible.ToDecimal(IFormatProvider provider) { return Convert.ToDecimal(m_value); } - /// DateTime IConvertible.ToDateTime(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "Single", "DateTime")); } - /// Object IConvertible.ToType(Type type, IFormatProvider provider) { return Convert.DefaultToType((IConvertible)this, type, provider); diff --git a/src/mscorlib/src/System/String.cs b/src/mscorlib/src/System/String.cs index 558d78f..f3a4d0f 100644 --- a/src/mscorlib/src/System/String.cs +++ b/src/mscorlib/src/System/String.cs @@ -747,91 +747,76 @@ namespace System return TypeCode.String; } - /// bool IConvertible.ToBoolean(IFormatProvider provider) { return Convert.ToBoolean(this, provider); } - /// char IConvertible.ToChar(IFormatProvider provider) { return Convert.ToChar(this, provider); } - /// sbyte IConvertible.ToSByte(IFormatProvider provider) { return Convert.ToSByte(this, provider); } - /// byte IConvertible.ToByte(IFormatProvider provider) { return Convert.ToByte(this, provider); } - /// short IConvertible.ToInt16(IFormatProvider provider) { return Convert.ToInt16(this, provider); } - /// ushort IConvertible.ToUInt16(IFormatProvider provider) { return Convert.ToUInt16(this, provider); } - /// int IConvertible.ToInt32(IFormatProvider provider) { return Convert.ToInt32(this, provider); } - /// uint IConvertible.ToUInt32(IFormatProvider provider) { return Convert.ToUInt32(this, provider); } - /// long IConvertible.ToInt64(IFormatProvider provider) { return Convert.ToInt64(this, provider); } - /// ulong IConvertible.ToUInt64(IFormatProvider provider) { return Convert.ToUInt64(this, provider); } - /// float IConvertible.ToSingle(IFormatProvider provider) { return Convert.ToSingle(this, provider); } - /// double IConvertible.ToDouble(IFormatProvider provider) { return Convert.ToDouble(this, provider); } - /// Decimal IConvertible.ToDecimal(IFormatProvider provider) { return Convert.ToDecimal(this, provider); } - /// DateTime IConvertible.ToDateTime(IFormatProvider provider) { return Convert.ToDateTime(this, provider); } - /// Object IConvertible.ToType(Type type, IFormatProvider provider) { return Convert.DefaultToType((IConvertible)this, type, provider); @@ -870,7 +855,6 @@ namespace System return new CharEnumerator(this); } - /// IEnumerator IEnumerable.GetEnumerator() { Contract.Ensures(Contract.Result() != null); diff --git a/src/mscorlib/src/System/Threading/Overlapped.cs b/src/mscorlib/src/System/Threading/Overlapped.cs index 64ae76d..0830ee6 100644 --- a/src/mscorlib/src/System/Threading/Overlapped.cs +++ b/src/mscorlib/src/System/Threading/Overlapped.cs @@ -241,7 +241,6 @@ namespace System.Threading #region class Overlapped - /// public class Overlapped { private OverlappedData m_overlappedData; diff --git a/src/mscorlib/src/System/UInt16.cs b/src/mscorlib/src/System/UInt16.cs index b6893c2..e4a6837 100644 --- a/src/mscorlib/src/System/UInt16.cs +++ b/src/mscorlib/src/System/UInt16.cs @@ -182,91 +182,76 @@ namespace System return TypeCode.UInt16; } - /// bool IConvertible.ToBoolean(IFormatProvider provider) { return Convert.ToBoolean(m_value); } - /// char IConvertible.ToChar(IFormatProvider provider) { return Convert.ToChar(m_value); } - /// sbyte IConvertible.ToSByte(IFormatProvider provider) { return Convert.ToSByte(m_value); } - /// byte IConvertible.ToByte(IFormatProvider provider) { return Convert.ToByte(m_value); } - /// short IConvertible.ToInt16(IFormatProvider provider) { return Convert.ToInt16(m_value); } - /// ushort IConvertible.ToUInt16(IFormatProvider provider) { return m_value; } - /// int IConvertible.ToInt32(IFormatProvider provider) { return Convert.ToInt32(m_value); } - /// uint IConvertible.ToUInt32(IFormatProvider provider) { return Convert.ToUInt32(m_value); } - /// long IConvertible.ToInt64(IFormatProvider provider) { return Convert.ToInt64(m_value); } - /// ulong IConvertible.ToUInt64(IFormatProvider provider) { return Convert.ToUInt64(m_value); } - /// float IConvertible.ToSingle(IFormatProvider provider) { return Convert.ToSingle(m_value); } - /// double IConvertible.ToDouble(IFormatProvider provider) { return Convert.ToDouble(m_value); } - /// Decimal IConvertible.ToDecimal(IFormatProvider provider) { return Convert.ToDecimal(m_value); } - /// DateTime IConvertible.ToDateTime(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "UInt16", "DateTime")); } - /// Object IConvertible.ToType(Type type, IFormatProvider provider) { return Convert.DefaultToType((IConvertible)this, type, provider); diff --git a/src/mscorlib/src/System/UInt32.cs b/src/mscorlib/src/System/UInt32.cs index f209b79..7c27efe 100644 --- a/src/mscorlib/src/System/UInt32.cs +++ b/src/mscorlib/src/System/UInt32.cs @@ -160,91 +160,76 @@ namespace System return TypeCode.UInt32; } - /// bool IConvertible.ToBoolean(IFormatProvider provider) { return Convert.ToBoolean(m_value); } - /// char IConvertible.ToChar(IFormatProvider provider) { return Convert.ToChar(m_value); } - /// sbyte IConvertible.ToSByte(IFormatProvider provider) { return Convert.ToSByte(m_value); } - /// byte IConvertible.ToByte(IFormatProvider provider) { return Convert.ToByte(m_value); } - /// short IConvertible.ToInt16(IFormatProvider provider) { return Convert.ToInt16(m_value); } - /// ushort IConvertible.ToUInt16(IFormatProvider provider) { return Convert.ToUInt16(m_value); } - /// int IConvertible.ToInt32(IFormatProvider provider) { return Convert.ToInt32(m_value); } - /// uint IConvertible.ToUInt32(IFormatProvider provider) { return m_value; } - /// long IConvertible.ToInt64(IFormatProvider provider) { return Convert.ToInt64(m_value); } - /// ulong IConvertible.ToUInt64(IFormatProvider provider) { return Convert.ToUInt64(m_value); } - /// float IConvertible.ToSingle(IFormatProvider provider) { return Convert.ToSingle(m_value); } - /// double IConvertible.ToDouble(IFormatProvider provider) { return Convert.ToDouble(m_value); } - /// Decimal IConvertible.ToDecimal(IFormatProvider provider) { return Convert.ToDecimal(m_value); } - /// DateTime IConvertible.ToDateTime(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "UInt32", "DateTime")); } - /// Object IConvertible.ToType(Type type, IFormatProvider provider) { return Convert.DefaultToType((IConvertible)this, type, provider); diff --git a/src/mscorlib/src/System/UInt64.cs b/src/mscorlib/src/System/UInt64.cs index 1f74940..0b79b6a 100644 --- a/src/mscorlib/src/System/UInt64.cs +++ b/src/mscorlib/src/System/UInt64.cs @@ -155,91 +155,76 @@ namespace System return TypeCode.UInt64; } - /// bool IConvertible.ToBoolean(IFormatProvider provider) { return Convert.ToBoolean(m_value); } - /// char IConvertible.ToChar(IFormatProvider provider) { return Convert.ToChar(m_value); } - /// sbyte IConvertible.ToSByte(IFormatProvider provider) { return Convert.ToSByte(m_value); } - /// byte IConvertible.ToByte(IFormatProvider provider) { return Convert.ToByte(m_value); } - /// short IConvertible.ToInt16(IFormatProvider provider) { return Convert.ToInt16(m_value); } - /// ushort IConvertible.ToUInt16(IFormatProvider provider) { return Convert.ToUInt16(m_value); } - /// int IConvertible.ToInt32(IFormatProvider provider) { return Convert.ToInt32(m_value); } - /// uint IConvertible.ToUInt32(IFormatProvider provider) { return Convert.ToUInt32(m_value); } - /// long IConvertible.ToInt64(IFormatProvider provider) { return Convert.ToInt64(m_value); } - /// ulong IConvertible.ToUInt64(IFormatProvider provider) { return m_value; } - /// float IConvertible.ToSingle(IFormatProvider provider) { return Convert.ToSingle(m_value); } - /// double IConvertible.ToDouble(IFormatProvider provider) { return Convert.ToDouble(m_value); } - /// Decimal IConvertible.ToDecimal(IFormatProvider provider) { return Convert.ToDecimal(m_value); } - /// DateTime IConvertible.ToDateTime(IFormatProvider provider) { throw new InvalidCastException(SR.Format(SR.InvalidCast_FromTo, "UInt64", "DateTime")); } - /// Object IConvertible.ToType(Type type, IFormatProvider provider) { return Convert.DefaultToType((IConvertible)this, type, provider); -- 2.7.4