Skip to content
Topic

Init-Only Properties

3 posts about Init-Only Properties by 3 contributors.

Know Init-Only Properties? Share what you know with developers who are learning it.

+ Follow Init-Only PropertiesBe the first to follow this
Articles
3
Contributors
3

Articles about Init-Only Properties

  1. Article · C#

    A Guide To Crafting Immutable Objects With C# 10's Init-Only Properties

    Discover how C# 10's init-only properties empower developers to craft immutable objects with precision, enhancing code readability and maintainability. In this article, Ziggy Rafiq demonstrates how you can use this powerful feature to create robust and predictable software.

    Ziggy RafiqZiggy Rafiq2,8491,000
  2. Article · C#

    C# 9.0 - Introduction To Init-Only Property

    C# 9.0 introduced a new feature called Init-Only Properties, enhancing the language's capabilities for defining immutable types. Init-only properties allow you to create read-only properties that can only be set during object initialization. This feature simplifies the creation of immutable objects, providing a concise and expressive syntax for initializing properties at the time of object creation and ensuring their immutability afterwards.

    Kirtesh ShahKirtesh Shah80,2021,000
  3. Article · C#

    C# 9 Cheat Sheet

    C# 9 Cheat Sheet with code examples and pros and cons.C# 9 introduced several new language features and enhancements, making it easier to write clean and concise code. Some key features include.

    Bassam AlugiliBassam Alugili58,2031,000