xamarin / Seminars

Sample code used in the Xamarin Seminars
69 stars 84 forks source link

Use of unassigned local variable 'callback' #1

Open TheLogan opened 10 years ago

TheLogan commented 10 years ago

Just downloaded your android animation code, to play around with it. But when I try to run it, I get an error in the file FadeImageView.cs

Found in Seminars / 2013-02-14-AndroidAnimations / XaminarAnimations / Widgets

The error says: " Use of unassigned local variable 'callback' ".

And is on line 67, where the variable "callback" is being used in the same piece of code as it's being assigned. I'm not sure what should have been there instead though. But in its present form it's not working. Regards, -Logan =)

TheLogan commented 10 years ago

Hmm, actually it seems to work just fine if that line gets commented out.