浏览代码

2008-04-02 Andreas Nahr <[email protected]>

	* IFormatterConverter.cs
	* SerializationException.cs
	* StreamingContext.cs: Fix parameter names

svn path=/trunk/mcs/; revision=99619
Andreas N 18 年之前
父节点
当前提交
6d0a2ee390

+ 6 - 0
mcs/class/corlib/System.Runtime.Serialization/ChangeLog

@@ -1,3 +1,9 @@
+2008-04-02  Andreas Nahr  <[email protected]>
+
+	* IFormatterConverter.cs
+	* SerializationException.cs
+	* StreamingContext.cs: Fix parameter names
+
 2006-12-18  Lluis Sanchez Gual  <[email protected]>
 
 	* FormatterServices.cs: In GetFields, avoid creating a field

+ 17 - 17
mcs/class/corlib/System.Runtime.Serialization/IFormatterConverter.cs

@@ -37,23 +37,23 @@ namespace System.Runtime.Serialization {
 	[System.Runtime.InteropServices.ComVisibleAttribute (true)]
 #endif
 	public interface IFormatterConverter {
-		object Convert (object o, Type t);
-		object Convert (object o, TypeCode tc);
+		object Convert (object value, Type type);
+		object Convert (object value, TypeCode typeCode);
 		
-		bool        ToBoolean  (object o);
-		byte        ToByte     (object o);
-		char        ToChar     (object o);
-		DateTime    ToDateTime (object o);
-		Decimal     ToDecimal  (object o);
-		double      ToDouble   (object o);
-		Int16       ToInt16    (object o);
-		Int32       ToInt32    (object o);
-		Int64       ToInt64    (object o);
-		sbyte       ToSByte    (object o);
-		float       ToSingle   (object o);
-		string      ToString   (object o);
-		UInt16      ToUInt16   (object o);
-		UInt32      ToUInt32   (object o);
-		UInt64      ToUInt64   (object o);
+		bool        ToBoolean  (object value);
+		byte        ToByte     (object value);
+		char        ToChar     (object value);
+		DateTime    ToDateTime (object value);
+		Decimal     ToDecimal  (object value);
+		double      ToDouble   (object value);
+		Int16       ToInt16    (object value);
+		Int32       ToInt32    (object value);
+		Int64       ToInt64    (object value);
+		sbyte       ToSByte    (object value);
+		float       ToSingle   (object value);
+		string      ToString   (object value);
+		UInt16      ToUInt16   (object value);
+		UInt32      ToUInt32   (object value);
+		UInt64      ToUInt64   (object value);
 	}
 }

+ 4 - 5
mcs/class/corlib/System.Runtime.Serialization/SerializationException.cs

@@ -1,5 +1,5 @@
 //
-// System.Runtime.Serialization/SerializationException.cd
+// System.Runtime.Serialization/SerializationException.cs
 //
 // Author:
 //   Paolo Molaro ([email protected])
@@ -51,13 +51,12 @@ namespace System.Runtime.Serialization {
 		{
 		}
 
-		public SerializationException (string message, Exception inner)
-			: base (message, inner)
+		public SerializationException (string message, Exception innerException)
+			: base (message, innerException)
 		{
 		}
 
-		protected SerializationException (SerializationInfo info,
-					       StreamingContext context)
+		protected SerializationException (SerializationInfo info, StreamingContext context)
 			: base (info, context)
 		{
 		}

+ 3 - 3
mcs/class/corlib/System.Runtime.Serialization/StreamingContext.cs

@@ -64,14 +64,14 @@ namespace System.Runtime.Serialization {
 			}
 		}
 
-		override public bool Equals (Object o)
+		override public bool Equals (Object obj)
 		{
 			StreamingContext other;
 			
-			if (!(o is StreamingContext))
+			if (!(obj is StreamingContext))
 				return false;
 
-			other = (StreamingContext) o;
+			other = (StreamingContext) obj;
 
 			return (other.state == this.state) && (other.additional == this.additional);
 		}