vblang icon indicating copy to clipboard operation
vblang copied to clipboard

The home for design of the Visual Basic .NET programming language and runtime library.

Results 110 vblang issues
Sort by recently updated
recently updated
newest added

Suppose we have this list: items = new List(Of (Id As Integer, Text As String)() I suggest using this short lambda syntax: `Dim x = items.Select(.Id)` instead of this: `Dim...

[(Ported from Roslyn Repo)](https://github.com/dotnet/roslyn/issues/10293) The grammar definition for an `Optional Parameter` is something similar to this. ``` OptionalParameter ::= "Optional" ParameterName Typing? DefaultToValue? Typing ::= "As" TypeIdentifier DefaultToValue ::= "="...

Discussion
Approved-in-Principle

I introduced many suggestions to shorten properties syntax, as they are the largest VB blocks. Auto properties are grate, but there are many cases where they can't be used. Here...

Suppose we have this code: ```VB.NET Call Foo( New List(Of Integer) From {1, 2}, New List(Of String) From {"x", "y"} ) ``` Wouldn't it be nice if we just rewrite...

I usually loose some time trying to use char and string methods as I forget if they are member or shared methods. I also don't know why most of the...

Looking at this property, which I had to write a full body just to deal with a property of some internal object in my control: ```VB.NET Public Property IsReadOnly As...

I suggest to use dictionaries as a simple value properties like this: ```VB.NET Dim Values As new Dictionary(of String, Integer) Sub Main() Values("Adam") = 1 ' as usual "Adam".Value =...

This Code gives me a runtime exception, as it is assumed to use `=` in comparing the objects: ```VB.NET Select Case e.OriginalSource Case Me, Me.TexTBox cmb.IsDropDownOpen = Not cmb.IsDropDownOpen End...

Proposal: A compact Full ReadOnly Property Every time I get confused about the meaning of assigning an expression to auto implemented read-only property in VB: is it just an initial...

I have this code: ```VB.NET cmbProject.AddItems(( From b In db.Projects Let name = b.Name.ToLower Where b.FinishedDate Is Nothing AndAlso ( name.StartsWith(Text) OrElse name.StartsWith("..." & Text) OrElse name.Contains(" " & Text)...