public ReadDouble ( int index ) : double | ||
index | int | the index of the field to read |
return | double |
public void TestReadDoubleName() { var fieldSet = new DefaultFieldSet(new[] { "name" }, new[] { "2.37" }); var read = fieldSet.ReadDouble("name"); Assert.AreEqual(2.37D, read); }
public void TestReadDoubleIndex() { var fieldSet = new DefaultFieldSet(new[] { "2.37" }); var read = fieldSet.ReadDouble(0); Assert.AreEqual(2.37D, read); }