Mohammad Hamdy Ghanem

Results 245 comments of Mohammad Hamdy Ghanem

> Warning BC42030 it does not seem like it was ever fixed Don't see it in .NET Core 5 console app. Edit: Yes it exists for ref types that can...

> Adding to Argument would be a better solution This suggests to consider `ByRef` and `Out` as a Dim statement also, so: `Call Foo(ByRef x)` Will be lowered to: ```...

``` If TypeOf obj Is s As String AndAlso s.Length > 0 Then End If ```

I think the perfect syntax can result from combining the Anthony's proposal with mine, so, we need to declare no new variables to deal with the target type. The `Select...

@DualBrain published some: https://github.com/DualBrain/Samples/tree/master/SourceGenerators

Try to separate the generated code in a different project then the code that uses it. In general, this is a good n-Tier practice, but it is not always easy....

This suggestion can shorten this Class-level definition: `Dim MyList As List(Of Integer) = New List(Of Integer) From {1, 2, 3}` to: `Dim MyList As List(Of Integer) = From {1, 2,...

So, you use an array, then convert it to a list, then pass it as enumerable? This doesn't seem a wise thing to do. And again: I am not seeking...

As I understand, and should happen if not, `From {1, 2}` is a collection initializer syntax and has nothing to so with arrays. It is translated to `Add` calls: ```...

Please note that my syntax has two advantages: 1. concise and consistent with initializer syntax. 2. not tied to a specific type, but inferred from context. Collections has endless types,...