Universal.Common.Data
3.2.0
dotnet add package Universal.Common.Data --version 3.2.0
NuGet\Install-Package Universal.Common.Data -Version 3.2.0
<PackageReference Include="Universal.Common.Data" Version="3.2.0" />
paket add Universal.Common.Data --version 3.2.0
#r "nuget: Universal.Common.Data, 3.2.0"
// Install Universal.Common.Data as a Cake Addin #addin nuget:?package=Universal.Common.Data&version=3.2.0 // Install Universal.Common.Data as a Cake Tool #tool nuget:?package=Universal.Common.Data&version=3.2.0
Universal.Common.Data
File and spreadsheet reading utilities that provide consistent APIs for accessing data.
Quickstart
DelimitedFileReader
A reader for CSV and other delimited files with support for typed value extraction and column mapping.
// Read a CSV file with headers
using (var reader = new DelimitedFileReader("data.csv", DelimitedFileFormat.CommaSeparatedValues))
{
while (reader.Read())
{
// Access by column name
string name = reader["Name"];
int age = reader.Get<int>("Age");
// Access by index
string firstColumn = reader[0];
double value = reader.Get<double>(1);
// Custom mapping function
DateTime date = reader.Get("Date", s => DateTime.Parse(s));
}
}
SpreadsheetReader
A reader for Excel spreadsheets (.xlsx) with support for header rows and optimized cell access.
// Configure reader options
var options = new SpreadsheetReader.Options
{
HasHeaderRow = true,
LoadRowsEagerly = true,
SheetName = "Sheet1" // Optional, reads first sheet if not specified
};
// Read an Excel file
using (var reader = new SpreadsheetReader("data.xlsx", options))
{
while (reader.Read())
{
// Access by column name (if header row enabled)
string name = reader.GetText("Name");
// Access by column index
string value = reader.GetText(0);
// Access raw cell for additional properties
Cell cell = reader.GetCell("Status");
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- System.ComponentModel.Annotations (>= 5.0.0)
- Universal.Common.Collections (>= 4.1.0)
- Universal.OpenXml (>= 4.0.1)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on Universal.Common.Data:
Package | Downloads |
---|---|
Universal.BureauOfMeteorology
Class library for working with the Australian Bureau of Meteorology data. |
|
Universal.Open.Australia.Holidays
Class library that provides data for Australian holidays. |
|
Universal.Open.OpenFlights
Class library for working with the OpenFlights database. |
|
Universal.World.Generation
Class library to assist with generation of common world objects. |
|
Universal.Open.Gtfs.Australia
Class library containing GTFS data providers for Australian transport authorities. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
3.2.0 | 63 | 2/9/2025 |
3.1.1 | 348 | 11/6/2023 |
3.1.0 | 1,401 | 10/13/2021 |
2.10.5 | 357 | 9/16/2021 |
2.10.4.1 | 370 | 9/15/2021 |
2.10.4 | 424 | 6/17/2021 |
2.10.3 | 353 | 6/17/2021 |
2.10.2 | 345 | 6/17/2021 |
2.10.1 | 1,405 | 6/4/2021 |
2.10.0 | 372 | 6/3/2021 |
2.9.0 | 1,051 | 5/22/2021 |
2.8.0 | 1,132 | 2/5/2021 |
2.7.2 | 891 | 1/7/2021 |
2.7.1 | 406 | 1/6/2021 |
2.7.0 | 843 | 11/18/2020 |
2.6.0 | 666 | 8/28/2020 |
2.5.2 | 488 | 8/20/2020 |
2.5.1 | 471 | 7/8/2020 |
2.5.0 | 463 | 6/23/2020 |
2.4.2 | 1,720 | 4/24/2020 |
2.4.1 | 1,295 | 3/17/2020 |
2.4.0.1 | 934 | 8/19/2019 |
Updated underlying OpenXML library version. Added new methods to SpreadsheetReader. Added new documentation.