Y_Library 1.0.0
See the version list below for details.
dotnet add package Y_Library --version 1.0.0
NuGet\Install-Package Y_Library -Version 1.0.0
<PackageReference Include="Y_Library" Version="1.0.0" />
<PackageVersion Include="Y_Library" Version="1.0.0" />
<PackageReference Include="Y_Library" />
paket add Y_Library --version 1.0.0
#r "nuget: Y_Library, 1.0.0"
#:package Y_Library@1.0.0
#addin nuget:?package=Y_Library&version=1.0.0
#tool nuget:?package=Y_Library&version=1.0.0
Y_Library
Y_Library is a C# code library that provides useful utility classes to help write robust, simple, and clear code. This library is designed for .NET 6.0 and targets Windows systems.
Installation
You can install Y_Library via NuGet Package Manager or by running the following command in the Package Manager Console:
Install-Package Y_Library
Example
YData
The YData class is a simple and independent configuration file manager that provides basic configuration file storage and retrieval services for your business code. You can use this class directly or derive it to define your own custom tables. The class follows the standard class naming convention.
Here is a simple example of how to use the YData class to manage configuration files:
// create a new instance of YData
YData data = new YData();
// create some data tables
DataTable table1 = new DataTable("Table1");
table1.Columns.Add("Column1", typeof(int));
table1.Rows.Add(1);
DataTable table2 = new DataTable("Table2");
table2.Columns.Add("Column1", typeof(string));
table2.Rows.Add("example");
// add the tables to the data sets
data.DataSets.Tables.Add(table1);
data.DataSets.Tables.Add(table2);
// save the configuration to an XML file
data.SaveConfiguration();
// load a configuration from an XML file
data.LoadConfiguration();
// retrieve a data table
DataTable retrievedTable = data.DataSets.Tables["Table1"];
// retrieve a table column value
int columnValue = (int)retrievedTable.Rows[0]["Column1"];
License
Y_Library is licensed under the MIT license. See LICENSE for more details.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. net9.0-windows was computed. net10.0-windows was computed. |
-
net6.0-windows7.0
- System.Data.SqlClient (>= 4.8.3)
- Y_CoreLibrary (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.