Example #1
0
 public bool Equals(IDTree other)
 {
     return(other != null &&
            Value == other.Value &&
            Keys.Count == other.Keys.Count &&
            Keys.All(key => other.ContainsKey(key) && (this[key]?.Equals(other[key]) ?? false)));
 }
Example #2
0
 private void CheckUpKeys(HashSet <Key> pressedKeys)
 {
     NeedKeysWasUp = true;
     if (Keys.All(k => pressedKeys.Contains(k)))
     {
         NeedKeysWasUp = false;
     }
 }
Example #3
0
 public void Update()
 {
     _doBoost = Keys.Length > 0 && Keys.All(Input.GetKey);
 }
 public override bool IsValidForRequest(ControllerContext controllerContext, MethodInfo methodInfo)
 {
     return(Keys.All(key => controllerContext.RouteData.Values.ContainsKey(key)));
 }