public override void OnCreate(Android.OS.Bundle savedInstanceState) { base.OnCreate (savedInstanceState); try { mCallBack = (ITimeChangedListener)TargetFragment; } catch(Java.Lang.ClassCastException) { throw new Java.Lang.ClassCastException ("Calling fragment must implement "); } }
public override void OnCreate(Android.OS.Bundle savedInstanceState) { base.OnCreate(savedInstanceState); try { mCallBack = (ITimeChangedListener)TargetFragment; } catch (Java.Lang.ClassCastException) { throw new Java.Lang.ClassCastException("Calling fragment must implement "); } }
/** * Cast the reference to {@link SlideDateTimeDialogFragment} to a * {@link TimeChangedListener}. */ public override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); try { _callback = (ITimeChangedListener)TargetFragment; } catch (ClassCastException e) { throw new ClassCastException("Calling fragment must implement " + "TimeFragment.TimeChangedListener interface"); } }
/** * Cast the reference to {@link SlideDateTimeDialogFragment} to a * {@link TimeChangedListener}. */ public override void OnCreate (Bundle savedInstanceState) { base.OnCreate (savedInstanceState); try { _callback = (ITimeChangedListener) TargetFragment; } catch (ClassCastException e) { throw new ClassCastException("Calling fragment must implement " + "TimeFragment.TimeChangedListener interface"); } }