Skip to content

Latest commit

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

FileDeserializer

FileDeserializer is a library for .NET applications which will simplify reading and writing to files. Written with .NET Standard 2.0, can be used both with .NET Framework and .NET Core.

  • Build: Build Status
  • Release: Release Status

Current version

Current version supports:

  • Csv deserialization

Getting started

FileDeserializer is installed from NuGet.

Install-Package FileDeserializer

To start using FileDeserialized add using statement.

using FileDeserializer;

Create object of type ICsvConverter by calling:

ICsvConvertercsvConverter=newCsvConverter();

You can now start using deserialization in two modes on ICsvConverter object:

/// <summary>/// Generic method which deserialize specific Csv for one-dimensional array. Use when file has only one row or you don't need data split by columns./// </summary>/// <typeparam name="T"></typeparam>/// <param name="path">Absolute path to file</param>/// <param name="separator">Separator by which file will be spitted</param>/// <returns></returns>T[]Deserialize<T>(stringpath,charseparator);
/// <summary>/// Generic method which deserialize specific Csv for two-dimensional array. Deserialize to string if you would like to keep headers which are different than numeric./// </summary>/// <typeparam name="T"></typeparam>/// <param name="path">Absolute path to file</param>/// <param name="separator">Separator by which file will be spitted</param>/// <param name="skipHeaders">Choose if headers should be omitted.</param>/// <returns></returns>T[,]DeserializeByRows<T>(stringpath,charseparator,boolskipHeaders=false);

About

Project of library that will simplify deserialization of files in formats like CSV, JSON, XML.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages