Replies: 2 comments 5 replies
-
Regarding the public extension C for string
{
public int Length => 10;
public int M()
{
Console.WriteLine(this.Length); // prints the length of the string
Console.WriteLine(extension.Length); // prints 10
}
} Edit: fixed property |
Beta Was this translation helpful? Give feedback.
5 replies
-
I don't quite get the motivation to have extension type for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://github.com/dotnet/csharplang/blob/main/meetings/2024/LDM-2024-09-30.md
Agenda
Beta Was this translation helpful? Give feedback.
All reactions