public bool Equals(DestinyItemSourceBlockDefinition input) { if (input == null) { return(false); } return (( SourceHashes == input.SourceHashes || (SourceHashes != null && SourceHashes.SequenceEqual(input.SourceHashes)) ) && ( Sources == input.Sources || (Sources != null && Sources.SequenceEqual(input.Sources)) ) && ( Exclusive == input.Exclusive || (Exclusive != null && Exclusive.Equals(input.Exclusive)) ) && ( VendorSources == input.VendorSources || (VendorSources != null && VendorSources.SequenceEqual(input.VendorSources)) )); }
private void button_Click(object sender, EventArgs e) { if (iniPro) { return; } Button btn = (Button)sender; switch (btn.Name) { case "buttonLogin": if (!loginProcess()) { return; } hp = new HumanProperty(); if (!checkMembers()) { return; } if (!checkOffice()) { return; } if (!checkCommon()) { return; } if (!selectNextMenu()) { return; } //checedProcess(); break; case "buttonCancel": labelMessage.Text = ""; textBoxMemberCode.Text = ""; break; case "buttonEnd": string tempFile = Folder.DefaultLocation() + @"\.~temp.xlsx"; if (File.Exists(tempFile)) { File.Delete(tempFile); } if (hp != null) { Exclusive exclusive = new Exclusive(); exclusive.Unregister(hp.MemberCode); } Application.Exit(); break; default: break; } }
public override int GetHashCode() { unchecked { var hashCode = Durable.GetHashCode(); hashCode = (hashCode * 397) ^ Exclusive.GetHashCode(); hashCode = (hashCode * 397) ^ AutoDelete.GetHashCode(); return(hashCode); } }
public long SortedSetLength(string key, double minScore, double maxScore, Exclusive exclusive = Exclusive.None) { if (exclusive.Equals(Exclusive.Both)) { return(database.ZCount(key, minScore, maxScore, true, true)); } if (exclusive.Equals(Exclusive.Start)) { return(database.ZCount(key, minScore, maxScore, true, false)); } if (exclusive.Equals(Exclusive.Stop)) { return(database.ZCount(key, minScore, maxScore, false, true)); } return(database.ZCount(key, minScore, maxScore, false, false)); }
protected override void beforeWriteNodeLogic( bool Creating, bool OverrideUniqueValidation ) { // Set which properties are displayed switch( ListMode.Value ) { case CswEnumRegulatoryListListModes.ArielManaged: case CswEnumRegulatoryListListModes.LOLIManaged: CASNosGrid.setHidden( true, true ); AddCASNumbers.setHidden( true, true ); Exclusive.setHidden( true, true ); break; case CswEnumRegulatoryListListModes.ManuallyManaged: ListCodes.setHidden( true, true ); Regions.setHidden( true, true ); break; } // We don't want users to be able to edit this property after the node is created ListMode.setReadOnly( true, true ); }
public (Token, string) Parse(string input) { var prefix = new Exclusive().Parse(input); var suffix = new Maybe( new Create(TokenType.Node) { new SkipWhitespace(), new Char('&'), new SkipWhitespace(), new Exclusive() } ).Parse(prefix.Item2); var token = prefix.Item1; if (suffix.Item1.type != TokenType.Failure) { token += suffix.Item1; token.type = TokenType.MaskOff; } return(token, suffix.Item2); }
return(new NamedQueueSourceSettings(ConnectionSettings, Queue, Declarations, NoLocal, Exclusive, AckRequired, ConsumerTag, arguments.ToDictionary(key => key.paramName, val => val.paramValue)));
public override int GetHashCode() { return(Exclusive.GetHashCode() ^ Regex.GetHashCode(StringComparison.InvariantCulture)); }
public KeyValuePair <CtSharpRedisValue, double>[] SortedSetRangeByScoreWithScoresDesc(string key, double maxScore, double minScore, long offset, long count, Exclusive exclusive = Exclusive.None) { string[] redisValues = null; if (exclusive.Equals(Exclusive.Both)) { redisValues = database.ZRevRangeByScore(key, maxScore, minScore, true, true, true, offset, count); return(ToCtSharpSortedSetRedisValue(redisValues)); } if (exclusive.Equals(Exclusive.Start)) { redisValues = database.ZRevRangeByScore(key, maxScore, minScore, true, true, false, offset, count); return(ToCtSharpSortedSetRedisValue(redisValues)); } if (exclusive.Equals(Exclusive.Stop)) { redisValues = database.ZRevRangeByScore(key, maxScore, minScore, true, false, true, offset, count); return(ToCtSharpSortedSetRedisValue(redisValues)); } redisValues = database.ZRevRangeByScore(key, maxScore, minScore, true, false, false, offset, count); return(ToCtSharpSortedSetRedisValue(redisValues)); }
public CtSharpRedisValue[] SortedSetRangeByScoreDesc(string key, double maxScore, double minScore, long offset, long count, Exclusive exclusive = Exclusive.None) { string[] redisValues = null; if (exclusive.Equals(Exclusive.Both)) { redisValues = database.ZRevRangeByScore(key, maxScore, minScore, false, true, true, offset, count); return(CtSharpRedisValue.ConvertToRedisValueArrary(redisValues)); } if (exclusive.Equals(Exclusive.Start)) { redisValues = database.ZRevRangeByScore(key, maxScore, minScore, false, true, false, offset, count); return(CtSharpRedisValue.ConvertToRedisValueArrary(redisValues)); } if (exclusive.Equals(Exclusive.Stop)) { redisValues = database.ZRevRangeByScore(key, maxScore, minScore, false, false, true, offset, count); return(CtSharpRedisValue.ConvertToRedisValueArrary(redisValues)); } redisValues = database.ZRevRangeByScore(key, maxScore, minScore, false, false, false, offset, count); return(CtSharpRedisValue.ConvertToRedisValueArrary(redisValues)); }
public CtSharpRedisValue[] SortedSetRangeByValueDesc <TMinMember, TMaxMember>(string key, TMinMember maxMember, TMaxMember minMember, long offset, long count, Exclusive exclusive = Exclusive.None) { throw new NotImplementedException("ctcsredis 不支持此命令"); }
public CtSharpRedisValue[] SortedSetRangeByValueAsc <TMinMember, TMaxMember>(string key, TMinMember minMember, TMaxMember maxMember, long offset, long count, Exclusive exclusive = Exclusive.None) { var min = CtSharpRedisValue.SerializeRedisValue(minMember).Value.Trim(); var max = CtSharpRedisValue.SerializeRedisValue(maxMember).Value.Trim(); string[] redisValues = null; if (exclusive.Equals(Exclusive.Both)) { redisValues = database.ZRangeByLex(key, $"({min}", $"({max}", offset, count); return(CtSharpRedisValue.ConvertToRedisValueArrary(redisValues)); } if (exclusive.Equals(Exclusive.Start)) { redisValues = database.ZRangeByLex(key, $"({min}", $"[{max}", offset, count); return(CtSharpRedisValue.ConvertToRedisValueArrary(redisValues)); } if (exclusive.Equals(Exclusive.Stop)) { redisValues = database.ZRangeByLex(key, $"[{min}", $"({max}", offset, count); return(CtSharpRedisValue.ConvertToRedisValueArrary(redisValues)); } redisValues = database.ZRangeByLex(key, $"[{min}", $"[{max}", offset, count); return(CtSharpRedisValue.ConvertToRedisValueArrary(redisValues)); }
public long SortedSetLengthByValue <TMinMember, TMaxMember>(string key, TMinMember minValue, TMaxMember maxValue, Exclusive exclusive = Exclusive.None) { string min = CtSharpRedisValue.SerializeRedisValue(minValue).Value; string max = CtSharpRedisValue.SerializeRedisValue(maxValue).Value; if (exclusive.Equals(Exclusive.Both)) { return(database.ZLexCount(key, $"({min}", $"({max}")); } if (exclusive.Equals(Exclusive.Start)) { return(database.ZLexCount(key, $"({min}", $"[{max}")); } if (exclusive.Equals(Exclusive.Stop)) { return(database.ZLexCount(key, $"[{min}", $"({max}")); } return(database.ZLexCount(key, $"[{min}", $"[{max}")); }
public long SortedSetRemoveRangeByScore(string key, double minScore, double maxScore, Exclusive exclusive = Exclusive.None) { if (exclusive.Equals(Exclusive.Both)) { return(database.ZRemRangeByScore(key, minScore, maxScore, true, true)); } if (exclusive.Equals(Exclusive.Start)) { return(database.ZRemRangeByScore(key, minScore, maxScore, true, false)); } if (exclusive.Equals(Exclusive.Stop)) { return(database.ZRemRangeByScore(key, minScore, maxScore, false, true)); } return(database.ZRemRangeByScore(key, minScore, maxScore, false, false)); }
public long SortedSetRemoveRangeByValue <TMinMember, TMaxMember>(string key, TMinMember minMember, TMaxMember maxMember, Exclusive exclusive = Exclusive.None) { var min = CtSharpRedisValue.SerializeRedisValue(minMember).Value; var max = CtSharpRedisValue.SerializeRedisValue(maxMember).Value; if (exclusive.Equals(Exclusive.Both)) { return(database.ZRemRangeByLex(key, $"({min}", $"({max}")); } if (exclusive.Equals(Exclusive.Start)) { return(database.ZRemRangeByLex(key, $"({min}", $"[{max}")); } if (exclusive.Equals(Exclusive.Stop)) { return(database.ZRemRangeByLex(key, $"[{min}", $"({max}")); } return(database.ZRemRangeByLex(key, $"[{min}", $"[{max}")); }