Tag: C#
All the articles with the tag "C#".
-
为C#/.NET项目开发一个简单的MediatR替代方案:实现CQRS模式
Published: at 12:37 PM本文深入探讨如何为C#/.NET开发一个简单的CQRS模式替代方案,取代被广泛使用的MediatR库。通过四个接口和调度器的实现,轻松打造属于自己的中介者模式。
-
💡 5种C#代码重构技巧,带你解锁更优雅的编程方式!
Published: at 05:39 PM探索五种实用的C#代码重构技术,通过实际案例改善代码的可读性、测试性和可维护性。让你的代码更简洁、更高效、更可扩展!
-
使用 C# Records 优化 DTOs:为什么推荐?
Published: at 12:29 PM探讨在 C# 中使用 Records 代替 Classes 定义数据传输对象 (DTO),以及它们的技术优势。
-
微软携手Anthropic,推出适用于C#的Model Context Protocol官方SDK
Published: at 08:43 AM微软与Anthropic合作开发了适用于C#的Model Context Protocol (MCP)官方SDK,帮助开发者轻松实现AI模型与外部工具和数据源的集成。
-
在C#中实现安全的AES加密:保护敏感数据的终极指南
Published: at 12:00 AM探索如何在C#中实现AES加密以保护API密钥和密码等敏感数据,涵盖加密、解密的实际代码示例及关键管理最佳实践。
-
Working With The Semaphore Class in C# - Best Practices
Published: at 12:00 AMIn this article, we'll introduce the Semaphore class in C#. Comparing the Semaphore and SemaphoreSlim classes.
-
Weak Events in C#
Published: at 12:00 AMWeak events in C# are used to prevent memory leaks in event-driven applications. Let's explore weak events and how to implement them.
-
Lookup in C#
Published: at 12:00 AMIn C#, the Lookup class is a dictionary-like data structure that maps keys to a value or collection of values.
-
在 Clean Architecture 中获取当前用户
Published: at 12:00 AM你构建的应用服务于你的用户(客户),以帮助他们解决一些问题。通常你需要知道当前应用的用户是谁,这是一个常见的需求。