Giter Club home page Giter Club logo

libcsv's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

potix2 sirfergy

libcsv's Issues

Static ToList method

Static ToList Method は FXCop的にはNGらしいです。
習得が難しいという理由のようです。悩みどころです。

ToListは便利な機能なので、代替案としてIEnumerable を実装してみました。
IEnumerableを実装すると foreachも使えるし、using System.Linq すれば ToList() も使えます。

using System.Linq;
....
var source = new CSVSource<T>(...);
var list = source.ToList();
... or ...
foreach(var line int source) {
   Console.WriteLine(line.Col1);
}

参考:http://msdn.microsoft.com/ja-jp/library/ms182139.aspx
CA1000: ジェネリック型の静的メンバーを宣言しません

Last empty values aren't parsed.

Container Class:

class Sample
{
public string Col1;
public string Col2;
public string Col3;
}

Input Text:

Col1,Col2,Col3
A,B,

Test Code:

var obj = csvSource.ReadNext();
Assert.AreEqual("", obj.Col3); // this line is failed, because returned null

Auto resolving of field type

CSVヘッダの型を認識して自動的にキャストする機能が欲しい。

  • String (既定)
  • int
  • double
  • DateTime

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.