你的位置: 码友网首页 / 资讯源列表 / Introducing C# 10: Seal overriden ToString() method on records

关于[Introducing C# 10: Seal overriden ToString() method on records]的摘要:

Microsoft has introduced last year records. Which a new way to declare object. Records were, and still are a great feature of C# 9. This year Microsoft is releasing C# 10 which is part of .NET 6 and improves records: The possibility (like a regular class) to seal the overidden ToString() method. Let’s see in this post an example of this.

原文地址: https://anthonygiretti.com/2021/07/19/introducing-c-10-seal-overriden-tostring-method-on-records/

收录时间: 2021-07-20 浏览量: 51 分类: C#

| 0 收藏 | 0