internal void method_1() { CardContainer.Class18.Class19 @class = new CardContainer.Class18.Class19(); @class.class18_0 = this; @class.asyncVoidMethodBuilder_0 = AsyncVoidMethodBuilder.Create(); @class.int_0 = -1; AsyncVoidMethodBuilder asyncVoidMethodBuilder_ = @class.asyncVoidMethodBuilder_0; asyncVoidMethodBuilder_.Start <CardContainer.Class18.Class19>(ref @class); }
void IAsyncStateMachine.MoveNext() { int num = this.int_0; try { TaskAwaiter <IEnumerable <Card> > awaiter; if (num != 0) { IEnumerable <Card> arg_4C_0 = this.class18_0.cardContainer_0.list_0; Func <Card, bool> arg_4C_1; if ((arg_4C_1 = this.class18_0.func_0) == null) { arg_4C_1 = (this.class18_0.func_0 = new Func <Card, bool>(this.class18_0.method_2)); } this.ienumerable_0 = arg_4C_0.Where(arg_4C_1); awaiter = this.class18_0.cardContainer_0.method_4(this.ienumerable_0).GetAwaiter(); if (!awaiter.IsCompleted) { int arg_7F_1 = 0; num = 0; this.int_0 = arg_7F_1; this.taskAwaiter_0 = awaiter; CardContainer.Class18.Class19 @class = this; this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <IEnumerable <Card> >, CardContainer.Class18.Class19>(ref awaiter, ref @class); return; } } else { awaiter = this.taskAwaiter_0; this.taskAwaiter_0 = default(TaskAwaiter <IEnumerable <Card> >); int arg_B8_1 = -1; num = -1; this.int_0 = arg_B8_1; } this.ienumerable_1 = awaiter.GetResult(); this.ienumerable_0 = this.ienumerable_1; this.ienumerable_1 = null; this.class18_0.cardContainer_0.CardWrapper.Visible = false; this.class18_0.cardContainer_0.CardWrapper.Controls.Clear(); this.ienumerator_0 = this.ienumerable_0.GetEnumerator(); try { while (this.ienumerator_0.MoveNext()) { this.card_0 = this.ienumerator_0.Current; this.card_0.Theme(this.class18_0.cardContainer_0.cardTheme_0, this.class18_0.cardContainer_0.color_0, this.class18_0.cardContainer_0.color_1); this.class18_0.cardContainer_0.CardWrapper.Controls.Add(this.card_0); this.card_0 = null; } } finally { if (num < 0 && this.ienumerator_0 != null) { this.ienumerator_0.Dispose(); } } this.ienumerator_0 = null; EventHandler <CardArgs> expr_1D2 = this.class18_0.cardContainer_0.OnLoaded; if (expr_1D2 != null) { expr_1D2(this.class18_0.cardContainer_0, new CardArgs { TotalCards = this.ienumerable_0.Count <Card>() }); } this.class18_0.cardContainer_0.CardWrapper.Visible = true; } catch (Exception exception) { this.int_0 = -2; this.asyncVoidMethodBuilder_0.SetException(exception); return; } this.int_0 = -2; this.asyncVoidMethodBuilder_0.SetResult(); }