Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

syncronized the types ToString with what the types converter outputs …

…for a string, except for BytesType
  • Loading branch information...
commit 9298c356b369c78697ec23e8c2d7b757e7cd6025 1 parent 3bf0311
Nick Berardi nberardi authored
5 src/Types/AsciiType.cs
View
@@ -33,11 +33,6 @@ protected override TypeCode TypeCode
get { return TypeCode.String; }
}
- public override string ToString()
- {
- return _value;
- }
-
#endregion
public override object GetValue() { return _value; }
5 src/Types/BooleanType.cs
View
@@ -33,11 +33,6 @@ protected override TypeCode TypeCode
get { return TypeCode.Boolean; }
}
- public override string ToString()
- {
- return _value.ToString();
- }
-
#endregion
public override object GetValue() { return _value; }
5 src/Types/CassandraObject.cs
View
@@ -48,6 +48,11 @@ public CassandraType GetCassandraType()
public abstract byte[] ToBigEndian();
public abstract void SetValueFromBigEndian(byte[] value);
+ public override string ToString()
+ {
+ return GetValue<string>();
+ }
+
#region Equality
public override bool Equals(object obj)
5 src/Types/CompositeType.cs
View
@@ -99,11 +99,6 @@ protected override TypeCode TypeCode
get { return TypeCode.Object; }
}
- public override string ToString()
- {
- return GetValue<string>();
- }
-
#endregion
public override object GetValue() { return _value; }
5 src/Types/DateType.cs
View
@@ -33,11 +33,6 @@ protected override TypeCode TypeCode
get { return TypeCode.DateTime; }
}
- public override string ToString()
- {
- return _value.ToString();
- }
-
#endregion
public override object GetValue() { return _value; }
5 src/Types/DecimalType.cs
View
@@ -34,11 +34,6 @@ protected override TypeCode TypeCode
get { return TypeCode.Decimal; }
}
- public override string ToString()
- {
- return _value.ToString();
- }
-
#endregion
public override object GetValue() { return _value; }
5 src/Types/DoubleType.cs
View
@@ -33,11 +33,6 @@ protected override TypeCode TypeCode
get { return TypeCode.Double; }
}
- public override string ToString()
- {
- return _value.ToString();
- }
-
#endregion
public override object GetValue() { return _value; }
5 src/Types/DynamicCompositeType.cs
View
@@ -59,11 +59,6 @@ protected override TypeCode TypeCode
get { return TypeCode.Object; }
}
- public override string ToString()
- {
- return GetValue<string>();
- }
-
#endregion
public override object GetValue() { return _value; }
5 src/Types/FloatType.cs
View
@@ -33,11 +33,6 @@ protected override TypeCode TypeCode
get { return TypeCode.Single; }
}
- public override string ToString()
- {
- return _value.ToString();
- }
-
#endregion
public override object GetValue() { return _value; }
5 src/Types/Int32Type.cs
View
@@ -33,11 +33,6 @@ protected override TypeCode TypeCode
get { return TypeCode.Int32; }
}
- public override string ToString()
- {
- return _value.ToString();
- }
-
#endregion
public override object GetValue() { return _value; }
5 src/Types/IntegerType.cs
View
@@ -34,11 +34,6 @@ protected override TypeCode TypeCode
get { return TypeCode.Object; }
}
- public override string ToString()
- {
- return _value.ToString("N");
- }
-
#endregion
public override object GetValue() { return _value; }
5 src/Types/LexicalUUIDType.cs
View
@@ -33,11 +33,6 @@ protected override TypeCode TypeCode
get { return TypeCode.Object; }
}
- public override string ToString()
- {
- return _value.ToString("D");
- }
-
#endregion
public override object GetValue() { return _value; }
5 src/Types/LongType.cs
View
@@ -33,11 +33,6 @@ protected override TypeCode TypeCode
get { return TypeCode.Int64; }
}
- public override string ToString()
- {
- return _value.ToString("N");
- }
-
#endregion
public override object GetValue() { return _value; }
5 src/Types/TimeUUIDType.cs
View
@@ -33,11 +33,6 @@ protected override TypeCode TypeCode
get { return TypeCode.Object; }
}
- public override string ToString()
- {
- return _value.ToString("D");
- }
-
#endregion
public override object GetValue() { return _value; }
5 src/Types/UTF8Type.cs
View
@@ -33,11 +33,6 @@ protected override TypeCode TypeCode
get { return TypeCode.String; }
}
- public override string ToString()
- {
- return _value;
- }
-
#endregion
public override object GetValue() { return _value; }
5 src/Types/UUIDType.cs
View
@@ -34,11 +34,6 @@ protected override TypeCode TypeCode
get { return TypeCode.Object; }
}
- public override string ToString()
- {
- return _value.ToString("D");
- }
-
#endregion
public override object GetValue() { return _value; }
5 src/Types/VoidType.cs
View
@@ -17,11 +17,6 @@ protected override object GetValueInternal(Type type)
throw new NotImplementedException();
}
- public override string ToString()
- {
- throw new NotImplementedException();
- }
-
protected override TypeCode TypeCode
{
get { throw new NotImplementedException(); }
4 test/FluentCassandra.Tests/Types/NullTypeTest.cs
View
@@ -9,7 +9,7 @@ public class NullTypeTest
[Fact]
public void Implicity_Cast_To_Int64()
{
- // arranage
+ // arrange
long? expected = null;
dynamic family = new FluentColumnFamily<AsciiType>("Test1", "Test1");
@@ -23,7 +23,7 @@ public void Implicity_Cast_To_Int64()
[Fact]
public void Implicity_Cast_To_FluentSuperColumn()
{
- // arranage
+ // arrange
var expectedName = "ShouldNotBeFound";
var expectedColumnCount = 0;
dynamic family = new FluentSuperColumnFamily<AsciiType, AsciiType>("Test1", "SubTest1");
Please sign in to comment.
Something went wrong with that request. Please try again.