Mohammad Hamdy Ghanem

Results 245 comments of Mohammad Hamdy Ghanem

@rskar-git ```VB.NET Public Property Account As Account Get Return _account : End Get Set _account = Value : lblAccountName.Content = _account.DisplayName : Refresh() : End Set End Property ``` even...

Think of Type as a verb not a none: `Type x As String` means make x of the type string. It is nearly equivalent to: `Dim x As String` I...

The meaning is obvious in both English and VB. Besides, we use exactly the same syntax today: `Catch x As OverFlowException` We don't use `Catch OverFlowException into x` and we...

Sorry: `catch (OverflowException)` is allowed only in C# not VB, but I see it should be.

Same as my suggestion, and I see it better. I can drop type and use case, and it will give the same meaning: ``` Select TypeOf t Case x As...

As we did when we learned `Catch e as Exception`, which didn't confuse me at all.

Still see no issue. In fact, we need VB to allow declaring variables in place everywhere, such as: `Dim x = Integer.TryParse(inputVar, outVar As Integer)` So, this is how VB...

This is exactly the primary purpose of type matching: casting type and assigning it to a var. Otherwise, we already match patterns for ever, but need further steps to assign...

Based on #542 , I suggest this : ``` Select CType(t) Case x As String Console.WriteLine(x.Length) Case y As Integer Console.WriteLine(y + 1) Case Else Console.WriteLine(t.ToString()) End Select ```