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))); }
private void CheckUpKeys(HashSet <Key> pressedKeys) { NeedKeysWasUp = true; if (Keys.All(k => pressedKeys.Contains(k))) { NeedKeysWasUp = false; } }
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))); }