Avatar ·

Do extension properties exist in C#?

Hi everyone! I recently started learning C# and encountered an interesting situation. I know that C# has extension methods that allow adding new methods to existing types without modifying their source code. For example, I can write an extension method for a string: ```csharp public static class StringExtensions { public static bool IsPalindrome(this string str) { // palindrome check } } ``` This works perfectly. But I need not just behavior, but specifically a property. Let's say I have an `Order` class from a third-party library, and I want to add a computed property `TotalPrice` to it that would sum up the cost of all order items. I cannot modify the `Order` class because it's not mine. Is it possible to do something like this?