How to check View type Xamarin Android

Viewed 2180

I have an View element and I want to check its type like ImageView, TextView etc in Android I could do this like (view instanceof EditText) but couldn't find anything familiar in Xamarin Android.

2 Answers
if(view is EditText)
{
    //do stuff
}

similar to Stam's answer, but takes advantage of C# is keyword.

Related