Mohammad Hamdy Ghanem
Mohammad Hamdy Ghanem
As a special case, dim result = Students[#Name] maybe rewritten as: dim result = Students[ ].Name
> It looks like you meant Where, not Select? My bad :)
Seems to be by design (a bad one in deed, and I hope it can be changed): https://devblogs.microsoft.com/vbteam/extension-methods-and-late-binding-extension-methods-part-4/ It goes more odd to prevent using extension methods from objects even...
Not only they are taking proposed features from VB to C#, but worst Anthony D Green's title is now a former VB.MET PM! They are literally shutting down VB.NET!! This...
@pricerc We were forced to read/write a lot of C# codes, so I get confused sometimes here and there! I like: `Public ReadOnly Property Content() as String = Get Foo()`...
Another reason: I always fall into this : `Public Property ViewName As String = IndexView.CreateNew(Students, ViewData)` This property will cause an exception, because it tries to put the initial value...
And to prove my point, try this: ```VB.NET Property Test() As Integer = IncValue() Dim value = 0 Function IncValue() Return value + 1 End Function Sub Main() Console.WriteLine(Test) '...
@pricerc The bodied expressions will not cover this: ```VB.NET Public ReadOnly Property Sum() string Dim _sum = 0 For each ..... _sum+= ....... Next Return _sum End Property ``` >...
> and to put Get and Set into the same Property 'block', and I think that was a good idea I don't discuss this idea. It is still applied to...
These guidelines can be interpreted in different ways. Most new vb features since 2005 are consedered alternative ways to already existing syntax. Properties and function are distinct keywords. See the...