Explicit typecasting & with keyword

galimpic

Member
Licensed User
Longtime User
#1 It would be convenient to have ability to write
x=(Sender as View).Tag (or Delphi way x=View(Sender).Tag)
instead of declaring a variable that is going to be used only for casting.

#2 How about "With" keyword to avoid repeating multiple references to an object?
 

Inman

Well-Known Member
Licensed User
Longtime User
+1

"With" keyword will be very helpful considering how long certain declarations can go on Android
 
Top