cfc81dba 5c4a 2770 9cf7 5c44ffbf7121 - akesseler/Plexdata.CsvParser GitHub Wiki
This class serves as container for the content of CSV data.
System.Object
Plexdata.CsvParser.Processors.CsvContainer
Namespace: Plexdata.CsvParser.Processors
Assembly: Plexdata.CsvParser.NET (in Plexdata.CsvParser.NET.dll) Version: 1.1.3+d5bef99aa35461ce4bafadf0bf2c2aeca18044ea
C#
public class CsvContainer
The CsvContainer type exposes the following members.
Name | Description | |
---|---|---|
![]() |
CsvContainer() | The default class constructor. |
![]() |
CsvContainer(List(List(String))) | The constructor with content initialization. |
![]() |
CsvContainer(List(List(String)), CsvSettings) | The constructor with content initialization. |
![]() |
CsvContainer(Int32, Int32) | The constructor with table initialization. |
![]() |
CsvContainer(Int32, Int32, CsvSettings) | The constructor with table initialization. |
Name | Description | |
---|---|---|
![]() |
Compare | Gets and sets the algorithm how any string comparison has to be done. Default value is OrdinalIgnoreCase. |
![]() |
Content | Gets the currently used CSV content. |
![]() |
Culture | Gets currently applied culture. Default value is current UI culture. |
![]() |
Exactly | Determines if the exactly mode is enabled or disabled. Default value is false. |
![]() |
Heading | Determines if the header usage is enabled or disabled. Default value is false. |
![]() |
IsEmpty | Indicates whether this container instance is empty or not. |
![]() |
Item(Int32) | Gets and sets the list of column items at specified position. |
![]() |
Item(String) | Gets and sets the list of column items for provided header. |
![]() |
Item(Int32, Int32) | Gets and sets an element for provided column and at specified index. |
![]() |
Item(String, Int32) | Gets and sets an element for provided header and at specified index. |
![]() |
Length | Gets the length (total number of rows) of the content. |
![]() |
Mappings | Gets currently applied value mappings. Default value is standard mapping. |
![]() |
Width | Gets the width (total number of columns) of the content. |
Name | Description | |
---|---|---|
![]() |
ChangeColumn | Changes the whole content of affected column. |
![]() |
Contains | Determines whether a particular header is in the container. |
![]() ![]() |
CreateDefaultSettings | Creates an instance of class CsvSettings and initializes it with relevant default values. |
![]() ![]() |
CreateInitialContent | Creates an initial content according to provided width and length. |
![]() |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() |
GetColumnIndex | This method tries to determine the column for provided header. |
![]() |
GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() |
GetObject | This method simply tries to convert provided string into its expected object representation. |
![]() |
GetTransformedContent | Gets the transformed content of this container. |
![]() |
GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() |
GetValue(Int32, Int32, Type) | This method gets the type-save value for provided column and at specified index taking provide type into account. |
![]() |
GetValue(String, Int32, Type) | This method gets the type-save value for provided header and at specified index taking provide type into account. |
![]() |
GetValue(TType)(Int32, Int32) | This method gets the type-save value for provided column and at specified index. |
![]() |
GetValue(TType)(String, Int32) | This method gets the type-save value for provided header and at specified index. |
![]() |
IsValid | Determines whether source list is valid. |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() |
SetValue(Object, Int32, Int32) | Sets provided value at field referenced by column and index. |
![]() |
SetValue(Object, String, Int32) | Sets provided value at field referenced by header and index. |
![]() |
SetValue(TType)(TType, Int32, Int32) | Sets provided value of type TType at field referenced by column and index. |
![]() |
SetValue(TType)(TType, String, Int32) | Sets provided value of type TType at field referenced by header and index. |
![]() |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() ![]() |
Transform | This method transforms line-oriented content into its column-oriented representation. |
![]() |
TryGetValue(Int32, Int32, Type) | This method tries to get the type-save value for provided column an at specified index taking provide type into account. |
![]() |
TryGetValue(String, Int32, Type) | This method tries to get the type-save value for provided header an at specified index taking provide type into account. |
![]() |
TryGetValue(TType)(Int32, Int32) | This method tries to get the type-save value for provided column an at specified index. |
![]() |
TryGetValue(TType)(String, Int32) | This method tries to get the type-save value for provided header an at specified index. |
![]() |
TrySetValue(Object, Int32, Int32) | Tries to set provided value at field referenced by column and index. |
![]() |
TrySetValue(Object, String, Int32) | Tries to set provided value at field referenced by header and index. |
![]() |
TrySetValue(TType)(TType, Int32, Int32) | Tries to set provided value of type TType at field referenced by column and index. |
![]() |
TrySetValue(TType)(TType, String, Int32) | Tries to set provided value of type TType at field referenced by header and index. |
Name | Description | |
---|---|---|
![]() |
GetColumn | Gets the zero-based index of a column that is referenced by provided header. (Defined by CsvContainerExtension.) |
![]() |
Serialize() | Overloaded. Serializes the content of provided CsvContainer into a string. (Defined by CsvContainerExtension.) |
![]() |
Serialize(CsvSettings) | Overloaded. Serializes the content of provided CsvContainer into a string using provided settings. (Defined by CsvContainerExtension.) |
![]() |
Sort(String, SortOrder) | Overloaded. Sorts the container by column referenced by provided header and in provided sort order. (Defined by CsvContainerExtension.) |
![]() |
Sort(Int32, SortOrder) | Overloaded. Sorts the container by referenced column and in provided sort order. (Defined by CsvContainerExtension.) |
Additionally, this class provides methods to access their items as well as converts values into their expected data type.