extensions

Add .NET extension methods for strings, collections, date/time, decimals, and entities.

Updated Jan 7, 2026
One-click install
npx skills add https://github.com/erymuzuan/motorent --skill extensions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: extensions
Source: https://github.com/erymuzuan/motorent/tree/main/.copilot/skills/extensions
Command: npx skills add https://github.com/erymuzuan/motorent --skill extensions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This library provides a battle-tested set of extension methods to simplify common .NET operations on strings, collections, date/time, decimals, and entities.

Core Features & Use Cases

  • IsNullOrEmpty and HasValue for null/empty checks on strings
  • Truncate and ToTitleCase for string formatting
  • FormatThaiPhone for standardized phone formatting
  • CollectionExtensions for list manipulation and batch processing
  • DateTimeExtensions and DecimalExtensions for formatting and numeric utilities
  • EntityExtensions for entity state checks

Quick Start

Import the Extensions namespace and start using the helper methods in your code.

Frequently Asked Questions about extensions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add extension methods for common .NET string and collection operations?

Add extension methods for .NET string and collection operations by importing a utility suite that provides functions like IsNullOrEmpty, HasValue, Truncate, and ToTitleCase. You get consistent, readable validation and transformation across your C# projects.

What's the best way to format Thai phone numbers in C#?

Format Thai phone numbers in C# using the FormatThaiPhone extension method, which standardizes phone number formatting. This utility ensures consistent presentation of Thai phone data within your .NET string processing workflows.

Can I use these extension methods for date-time and decimal formatting in dotnet?

You can use these extension methods for date-time and decimal formatting in dotnet. The suite includes DateTimeExtensions and DecimalExtensions that provide specialized helpers for formatting dates and applying numeric utilities.

Do I need any external dependencies to use these C# string utilities?

You do not need any external dependencies to use these C# string utilities. The extension methods library operates independently, allowing you to import the namespace and directly apply helpers like Truncate or ToTitleCase without additional packages.

How do I handle batch processing and list manipulation in C# collections?

Handle batch processing and list manipulation in C# collections using the included CollectionExtensions. These methods simplify common list manipulation tasks, enabling efficient batch processing and readable data transformation across your .NET applications.

When do I need extension methods for entity state checks in .NET?

You need extension methods for entity state checks in .NET when managing data entities that require consistent validation. The EntityExtensions provide helpers to verify entity states, ensuring data integrity during transformation and processing tasks.