Skip to content

JAAvila-Of/JAAvila.SafeTypes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SafeTypes Utilities

SafeTypes Utilities is a collection of tools and utilities designed to enhance type safety in your projects. With this library, you can reduce runtime errors by leveraging compile-time type checks and ensuring stricter contracts within your codebase.

Features

  • Enhanced Type Safety: Focus on preventing common programming bugs caused by incompatible types.
  • Extensibility: Easily extend and adapt to your specific application needs.
  • Seamless Integration: Works out-of-the-box with .NET Core (net8.0) and higher.

Getting Started

Start by installing the package via NuGet:

dotnet add package JAAvila.SafeTypes

Integrate the library into your project to start leveraging its type-safe utilities.

Requirements

  • Framework: .NET 8.0 or higher
  • Language: C# 12 or newer

Note: The library takes full advantage of modern C# features, so make sure your project matches the minimum requirements mentioned above.

Installation

  1. Add the package to your project using the command:

    dotnet add package JAAvila.SafeTypes
  2. Import the library into your code:

    using JAAvila.SafeTypes;
  3. Start coding with added type-safe reliability!

Usage Example

Here’s a basic example to illustrate how you can use this utility:

using SafeTypes.SafeTypes.Extension;

IEnumerable<int>? source = null;
var result = source.SafeNull().ToList();
// Use the type-safe instance as needed

More detailed examples can be found in the documentation (soon).

Contributing

Contributions are welcome! If you’d like to contribute, please fork this repository, create a new branch, and submit a pull request with your changes.

Before contributing, make sure to review the code of conduct and guidelines for contributions.

License

This project is licensed under the Apache License 2.0. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages