• Tutorials
  • Api Documentation
  • Download
  • Credits
Show / Hide Table of Contents
  • AutoCheck.Core
    • Output
    • Output.Log
    • Output.Style
    • Output.Type
    • Script
    • Script.ExecutionMode
    • Utils
    • Utils.OS
  • AutoCheck.Core.Connectors
    • Atom
    • Base
    • Compressed
    • Css
    • Csv
    • CsvDocument
    • Dmoj
    • GDrive
    • Html
    • Math
    • Odoo
    • Operator
    • PlainText
    • PlainText.PlainTextDocument
    • Postgres
    • Rss
    • Shell
    • TextStream
    • Xml
    • Xml.XmlNodeType
  • AutoCheck.Core.CopyDetectors
    • Base
    • Base.Mode
    • Css
    • Html
    • PlainText
    • PlainText.File
    • SourceCode
    • SqlLog
    • Xml
  • AutoCheck.Core.Events
    • LogUpdateEventArgs
    • StatusUpdateEventArgs
    • StatusUpdateEventArgs.ExecutionEvent
  • AutoCheck.Core.Exceptions
    • ArgumentInvalidException
    • ArgumentNotFoundException
    • ConfigFileMissingException
    • ConnectionInvalidException
    • ConnectorInvalidException
    • ConnectorNotFoundException
    • DocumentInvalidException
    • DownloadFailedException
    • ItemNotFoundException
    • PorpertyNotFoundException
    • QueryInvalidException
    • RegexInvalidException
    • ResultMismatchException
    • ScriptInvalidException
    • ScriptNotFoundException
    • StyleInvalidException
    • StyleNotAppliedException
    • StyleNotFoundException
    • TableInconsistencyException
    • VariableInvalidException
    • VariableNotFoundException
  • Google.DiffMatchPatch
    • Diff
    • DiffMatchPatch
    • Operation
    • Patch

Class CsvDocument

Contains a CSV document content (without data mappings, all the content will be a string).

Inheritance
System.Object
CsvDocument
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AutoCheck.Core.Connectors
Assembly: AutoCheck.dll
Syntax
public class CsvDocument

Constructors

| Improve this Doc View Source

CsvDocument(String, Char, Char)

Creates a new CSV Document instance, parsing an existing CSV file.

Declaration
public CsvDocument(string file, char fieldDelimiter = ',', char textDelimiter = '"')
Parameters
Type Name Description
System.String file

CSV file path.

System.Char fieldDelimiter

Field delimiter char.

System.Char textDelimiter

Text delimiter char.

Properties

| Improve this Doc View Source

Content

All the content, grouped by columns.

Declaration
public Dictionary<string, List<string>> Content { get; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.String, System.Collections.Generic.List<System.String>>
| Improve this Doc View Source

Count

Return the amount of lines

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Headers

Returns the header names

Declaration
public string[] Headers { get; }
Property Value
Type Description
System.String[]

Methods

| Improve this Doc View Source

GetLine(Int32)

Returns a line

Declaration
public Dictionary<string, string> GetLine(int index)
Parameters
Type Name Description
System.Int32 index

Index of the line that must be retrieved (from 1 to N).

Returns
Type Description
System.Collections.Generic.Dictionary<System.String, System.String>
| Improve this Doc View Source

Validate()

Checks the amount of columns on each row, which must be equivalent between each other.

Declaration
public void Validate()
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX