Skip to main content
تشغيل أي مهارة في Manus
بنقرة واحدة

thinktecture-runtime-extensions

النجوم٩٠
التفرعات٥
آخر تحديث٢٥ يونيو ٢٠٢٦ في ٠٦:٤٣

Design and implement domain types with Thinktecture.Runtime.Extensions — Smart Enums ([SmartEnum<TKey>] / [SmartEnum]), Value Objects ([ValueObject<TKey>] / [ComplexValueObject]), Discriminated Unions ([Union<T1,T2,…>] / [AdHocUnion] / [Union]), and Object Factories ([ObjectFactory<T>]). Use both to pick the right building block AND to implement it: validation via ValidateFactoryArguments / CreateCore / ValidateCore, Switch/Map, factory methods (FactoryMethodGeneration), equality comparers (KeyMemberEqualityComparer), generic types via TypeParamRef1-5, backing-field merging (UseSingleBackingField), serialization/EF/ASP.NET integration, setting cascades, and TTRESG diagnostics. Trigger on any of these attributes, primitive-obsession refactors (Email, Amount, ISBN), fixed enum-like sets, one-of / Success|Failure modeling, IsT1/AsT1, or TTRESG codes (047/057-062/068-076). Type-specific detail is loaded on demand from this skill's references/.

التثبيت

التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.

مستكشف الملفات
12 ملفات
SKILL.md
readonly