public int findpassword(int input1,int input2,int input3,int input4,int input5) { int findpassword(params int[] input) { if(input == null) throw new ArgumentNullException(nameof(input)); for(int i=0; i < input.Length; i++) { // Do Stuff } } var result = findpassword(new int[] { input1, input2, input3, input4, input5 }); }
bool IEnumerator.MoveNext() { bool result; try { switch (this.<>1__state) { case 0: this.<>1__state = -1; this.<>s__1 = this.sequence1.GetEnumerator(); this.<>1__state = -3; break; case 1: this.<>1__state = -3; this.<item>5__2 = default(T); break; case 2: this.<>1__state = -4; this.<item>5__4 = default(T); goto IL_101; default: return false; } if (this.<>s__1.MoveNext()) { this.<item>5__2 = this.<>s__1.Current; this.<>2__current = this.<item>5__2; this.<>1__state = 1; return true; } this.<>m__Finally1(); this.<>s__1 = null; this.<>s__3 = this.sequence2.GetEnumerator(); this.<>1__state = -4; IL_101: if (!this.<>s__3.MoveNext()) { this.<>m__Finally2(); this.<>s__3 = null; result = false; } else { this.<item>5__4 = this.<>s__3.Current; this.<>2__current = this.<item>5__4; this.<>1__state = 2; result = true; } } catch { this.System.IDisposable.Dispose(); throw; } return result; }