public int f(int A_0) { try { if (!this.i.ContainsKey(A_0)) { return(0); } cv cv = this.i[A_0]; if (cv.f() == 0) { return(0); } int key = cv.f(); int num2 = A_0; int num3 = 0; while (key != 0) { if (key == this.o) { return(this.o); } num3++; if ((num3 > 20) || (num2 == key)) { return(num2); } num2 = key; if (this.i.ContainsKey(key)) { key = this.i[key].f(); } else { key = 0; } } return(num2); } catch (Exception) { return(0); } }
private void a(cv A_0) { int key = A_0.f(); if (!this.l.ContainsKey(key)) { this.l.Add(key, new List <cv>()); } if (!this.l[key].Contains(A_0)) { this.l[key].Add(A_0); } }
private void b(cv A_0) { int key = A_0.f(); if (this.l.ContainsKey(key) && this.l[key].Contains(A_0)) { this.l[key].Remove(A_0); if (this.l[key].Count == 0) { this.l.Remove(key); } } }