I am partially new to C# (I have done basics with it, but most of my experience is with VB.NET), and am working on converting my VB.NET code to C# (I am converting my UWP apps to Xamarin, and all my UWP codebehind was written using VB.NET). I am trying
to convert the following VB.NET to C#:
Imports Xamarin.Forms
Public Class Class1
Public Sub Testing()
Dim fl As New FlexLayout()
Dim tempbtn As View
tempbtn = fl.Children.Where(Function(btn) btn Is GetType(Grid))(0)
End Sub
End Class
I thought that this would be similar to the following:
tempbtn = fl.Children.Where(btn => btn.GetType() == typeof(Grid))(0);
However, Visual Studio 2019 is giving me the message "Method Name Expected". What am I doing wrong? Thanks.
Nathan Sokalski njsokalski@hotmail.com http://www.nathansokalski.com/