Parameters
- i
Library/Library.Test/TestCsvReader.cs
C# | Copy Code |
---|---|
using (CsvReader r = new CsvReader(new StringReader(CSV_DOC1))) { r.Read(); Assert.AreEqual("1a", r["f1"]); Assert.AreEqual("1b", r[1]); Assert.AreEqual("1c", r.GetString(2)); Assert.AreEqual("1c", r.GetValues()[2]); } |
VB.NET | Copy Code |
---|---|
Using r As New CsvReader(New StringReader(CSV_DOC1)) r.Read() Assert.AreEqual("1a", r("f1")) Assert.AreEqual("1b", r(1)) Assert.AreEqual("1c", r.GetString(2)) Assert.AreEqual("1c", r.GetValues()(2)) End Using |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
Reference
CsvReader ClassCsvReader Members
Overload List
Source Code
Library/Data/CsvReader.csUsed By
Boolean CsvReader.GetBoolean(Int32)Byte CsvReader.GetByte(Int32)
Int64 CsvReader.GetBytes(Int32,Int64,Byte[],Int32,Int32)
Char CsvReader.GetChar(Int32)
Int64 CsvReader.GetChars(Int32,Int64,Char[],Int32,Int32)
IDataReader CsvReader.GetData(Int32)
DateTime CsvReader.GetDateTime(Int32)
Decimal CsvReader.GetDecimal(Int32)
Double CsvReader.GetDouble(Int32)
Single CsvReader.GetFloat(Int32)
Guid CsvReader.GetGuid(Int32)
Int16 CsvReader.GetInt16(Int32)
Int32 CsvReader.GetInt32(Int32)
Int64 CsvReader.GetInt64(Int32)