else if (type == typeof(float)) return TypeCode.Single;
else if (type == typeof(double)) return TypeCode.Double;
else if (type == typeof(DateTime)) return TypeCode.DateTime;
- else if (type == (typeof(Decimal))) return TypeCode.Decimal;
+ else if (type == (typeof(decimal))) return TypeCode.Decimal;
else return TypeCode.Object;
}
}
// Writes the text representation of a boolean to the text stream. This
- // method outputs either Boolean.TrueString or Boolean.FalseString.
+ // method outputs either bool.TrueString or bool.FalseString.
//
public virtual void Write(bool value)
{
// Writes the text representation of a float to the text stream. The
// text representation of the given value is produced by calling the
- // Float.toString(float) method.
+ // float.ToString(float) method.
//
public virtual void Write(float value)
{
// Writes the text representation of a double to the text stream. The
// text representation of the given value is produced by calling the
- // Double.toString(double) method.
+ // double.ToString(double) method.
//
public virtual void Write(double value)
{