Пример #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (TheStack != null ? TheStack.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)Mode;
         hashCode = (hashCode * 397) ^ (TrueArmText != null ? TrueArmText.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (FalseArmText != null ? FalseArmText.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DisplayText != null ? DisplayText.GetHashCode() : 0);
         return(hashCode);
     }
 }
 /// <summary>Serves as a hash function for a particular type. </summary>
 /// <returns>A hash code for the current <see cref="T:System.Object" />.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (ObjList != null ? ObjList.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TheArrayList != null ? TheArrayList.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TheHashtable != null ? TheHashtable.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TheQueue != null ? TheQueue.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TheStack != null ? TheStack.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TheSortedList != null ? TheSortedList.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TheBitArray != null ? TheBitArray.GetHashCode() : 0);
         return(hashCode);
     }
 }
Пример #3
0
 public void AddModelItem(Dev2Decision item)
 {
     TheStack.Add(item);
 }
 void Start()
 {
     stack = transform.parent.GetComponent <TheStack>();
     //transform.localScale = new Vector3(tileBounds.x, 1.0f, tileBounds.y);
     move = true;
 }
Пример #5
0
 // Use this for initialization
 void Start()
 {
     stackHimself = GameObject.Find("TheStack").GetComponent <TheStack>();
 }