Y_Library 1.0.0

There is a newer version of this package available.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Y_Library" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Y_Library" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Y_Library" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Y_Library --version 1.0.0
                    
#r "nuget: Y_Library, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Y_Library@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Y_Library&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Y_Library&version=1.0.0
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.3 289 6/19/2023
1.0.1 263 6/12/2023
1.0.0 255 6/8/2023