-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Open
Labels
Area-Language DesignFeature - Extension EverythingThe extension everything featureThe extension everything featureLanguage-VBResolution-By DesignThe behavior reported in the issue matches the current designThe behavior reported in the issue matches the current design
Milestone
Description
Is your feature request related to a problem? Please describe.
I would like to use C# 14's extension properties, e.g.
var s = "";
Console.WriteLine(s.IsFancy);
public static class StringExtensions
{
extension(string s)
{
public bool IsFancy => true;
}
}…but then also to consume them in VB.
However, while VB does see extension methods even when they're in the new extension container syntax, it doesn't appear to see extension properties.
Describe the solution you'd like
It would be great if extension properties simply showed up in IntelliSense.
It would also be workable if VB merely saw methods, i.e. string.get_IsFancy in the above case, although the syntax wouldn't be quite as nice for a setter.
Additional context
For now, I'll manually write method wrappers so the extension properties can sort of be accessed from VB.
skurth and paul1956
Metadata
Metadata
Assignees
Labels
Area-Language DesignFeature - Extension EverythingThe extension everything featureThe extension everything featureLanguage-VBResolution-By DesignThe behavior reported in the issue matches the current designThe behavior reported in the issue matches the current design