Skip to content

fgilde/Nextended

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nextended

NuGet License

A comprehensive suite of .NET libraries providing powerful extension methods, custom types, utilities, and code generation tools.

Note: This library was previously known as "nExt". It has been renamed to Nextended with full support for modern .NET versions including .NET 8 and .NET 9.

📦 Package Ecosystem

Package Description NuGet
Nextended.Core Foundation library with extension methods and custom types NuGet
Nextended.Blazor Blazor-specific helpers and components NuGet
Nextended.Cache Caching utilities and extensions NuGet
Nextended.EF Entity Framework Core extensions NuGet
Nextended.Web ASP.NET Core utilities NuGet
Nextended.Imaging Image processing utilities NuGet
Nextended.UI WPF/Windows UI helpers NuGet
Nextended.CodeGen Source code generation NuGet
Nextended.Aspire .NET Aspire extensions NuGet

🚀 Quick Start

Installation

dotnet add package Nextended.Core

Basic Usage

using Nextended.Core.Extensions;
using Nextended.Core.Types;

// Extension methods
string text = "hello world";
string camelCase = text.ToCamelCase();     // "helloWorld"
string pascalCase = text.ToPascalCase();   // "HelloWorld"

// Custom types
var price = new Money(99.99m, Currency.USD);
var today = Date.Today;

// Object mapping
var userDto = user.MapTo<UserDto>();

// Advanced mapping with settings
var settings = ClassMappingSettings.Default
    .IgnoreProperties<User>(u => u.Password);
var dto = user.MapTo<UserDto>(settings);

🎯 Key Features

Extension Methods

  • String: Case conversions, validation, manipulation
  • DateTime: Business day calculations, date ranges, formatting
  • Collections: Advanced LINQ, batch processing, safe operations
  • Type: Reflection helpers, type inspection, attribute retrieval
  • Object: Deep cloning, property manipulation, conversions
  • Task: Async utilities, timeout operations, fire-and-forget

Custom Types

  • Money - Precise decimal type for financial calculations
  • Date - Date-only type without time components
  • BaseId - Generic strongly-typed ID wrapper
  • SuperType - Advanced entity type with subtype relationships
  • Range - Generic range type for intervals

Class Mapping

Fast and flexible object mapping without external dependencies:

var dto = sourceObject.MapTo<TargetDto>();

Code Generation

Generate code at compile-time from:

  • Auto-generate DTOs from domain models
  • Create strongly-typed classes from JSON/XML
  • Generate data classes from Excel spreadsheets

📚 Documentation

🔗 Migration from nExt

If you're migrating from the old nExt package:

  • The namespace has changed from nExt.* to Nextended.*
  • All functionality has been preserved and enhanced
  • See the Migration Guide for details (coming soon)

Legacy Package (no longer maintained): nExt.Core

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🔗 Links

About

Moved package nExt from CodePlex to github and updated to .net5

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages