라벨이 Linq인 게시물 표시

C# CSV Reader with Linq

using System; using System.ComponentModel; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using LumenWorks.Framework.IO.Csv; public class CsvQueryReader<TEntry> : IDisposable where TEntry : struct {     private CsvReader m_csvReader;     private FieldTypeInfo[] m_fieldTypeInfos;     private bool m_isDisposed = false;     public CsvQueryReader(string path, Encoding encoding, Boolean hasHeader)     {         m_csvReader = new CsvReader(new StreamReader(path, encoding), hasHeader);         Initialize();     }     public CsvQueryReader(Stream stream, Encoding encoding, Boolean hasHeader)     {         m_csvReader = new CsvReader(new StreamReader(stream, encoding), hasHeader);      ...

101 LINQ Samples

http://msdn.microsoft.com/en-us/vcsharp/aa336746.aspx Above link is MS's official site for the Linq samples.

LINQ with C# Objects, Collections and Arrays

http://www.brettb.com/SQL_Help_Rowcount_Rows_Affected.asp How to use the Linq in C# ?

Strongly-Typed CSV Reader in C#

http://alexreg.wordpress.com/2009/05/03/strongly-typed-csv-reader-in-c/ Above link to use how to use the CSV Reader with Linq functionality.