/// <summary> /// Serves as the default hash function. /// </summary> /// <returns>A hash code for the current object.</returns> public override int GetHashCode() { unchecked { return(((Dictionary?.GetHashCode() ?? 0) * 397) ^ (int)SerializationKeyFilter); } }
public override int GetHashCode() { unchecked { return(((LegendItem?.GetHashCode() ?? 0) * 397) ^ (Name?.GetHashCode() ?? 0)); } }
public string convert(string source, Dictionary<string, object> attributes, Dictionary<string, object> model) { String key = source.GetHashCode() + "-" + attributes.GetHashCode(); if (!cache.Contains(key)) { cache.Add(key, convert(source, attributes)); } return (string) cache[key]; }
public override int GetHashCode() { unchecked { var hashCode = 37; hashCode = (hashCode * 397) ^ (_remoteFiles?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ (_fileBasedResolver?.GetHashCode() ?? 0); return(hashCode); } }
public override int GetHashCode() => _values.GetHashCode();
public string GetTreatment(Key key, string feature, Dictionary <string, object> attributes = null, bool logMetricsAndImpressions = true, bool multiple = false) { string featureHash = string.Concat(key.matchingKey, "#", feature, "#", attributes != null ? attributes.GetHashCode() : 0); if (multiple && treatmentCache.ContainsKey(featureHash)) { return(treatmentCache[featureHash]); } var result = GetTreatmentForFeature(key, feature, attributes, logMetricsAndImpressions); if (multiple) { treatmentCache.TryAdd(featureHash, result); } return(result); }
public override int GetHashCode() { return(_tags?.GetHashCode() ?? 0); }
/// <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 { return(((_class != null ? _class.GetHashCode() : 0) * 397) ^ (_properties != null ? _properties.GetHashCode() : 0)); } }
public override int GetHashCode() { return(_dictionary?.GetHashCode() ?? 0); }
public override int GetHashCode() => DataDictionary.GetHashCode();
public override int GetHashCode() { return(_data != null ? _data.GetHashCode() : 0); }
/// <summary> /// Calculates Class HashCode /// </summary> /// <returns>Hashcode</returns> public override int GetHashCode() { return(base.GetHashCode() ^ History.GetHashCode() ^ ChatLogs.GetHashCode()); }
public int GetHashCode(Dictionary <TKey, TValue> obj) { return((int)obj?.GetHashCode()); }
public override int GetHashCode() { return(baseDirectory.GetHashCode() ^ scripts.GetHashCode()); }
/// <summary> /// Serves as a hash function for a <see cref="Couchbase.Lite.Store.ContentValues"/> object. /// </summary> /// <returns>A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a /// hash table.</returns> public override int GetHashCode() { return(mValues.GetHashCode()); }
public override int GetHashCode() { return(body.GetHashCode()); }
public override int GetHashCode() { return(_statMaps != null?_statMaps.GetHashCode() : 0); }
///<summary> ///Serves as a hash function for a particular type. ///</summary> /// ///<returns> ///A hash code for the current <see cref="T:System.Object" />. ///</returns> ///<filterpriority>2</filterpriority> public override int GetHashCode() { return(_propDefs != null ? _propDefs.GetHashCode() : 0); }
public override int GetHashCode() { return(attributes.GetHashCode()); }
// create a type... for future use. public static Type CreateClass(Dictionary<string, string> dic ) { var className = dic.GetHashCode().ToString(); return CreateClass(dic, className); }
public override int GetHashCode() { return(attributes != null ? attributes.GetHashCode() : 0); }
public override int GetHashCode() { return(base.GetHashCode() | mOptionGroups.GetHashCode()); }
/// <summary> /// /// </summary> /// <returns></returns> public override int GetHashCode() { return(Prediction.GetHashCode() ^ Probabilities.GetHashCode()); }
//-------------------------------------------------------------------------------------------------------------------------------- public override int GetHashCode() { return(Raw.GetHashCode()); }
public int GetHashCode(Dictionary <string, LogLevel> obj) { return(obj?.GetHashCode() ?? 0); }
public override int GetHashCode() { return(_constraints?.GetHashCode() ?? 0); }
public void PrintToString_OnIDictionary() { var dict = new Dictionary <string, Node> { { "abc", new Node() } } as IDictionary <string, Node>; var kvPair = dict.First(); var expected = $"{{\r\n\t{{\r\n\t\tkey: abc (Hash: {kvPair.Key.GetHashCode()})\r\n\t\tvalue: " + $"Node (Hash: {kvPair.Value.GetHashCode()})\r\n\t\t\t\tneighbor = null\r\n\t}}\r\n}} (Hash: {dict.GetHashCode()})"; dict.PrintToString().Should().Be(expected); }
public override int GetHashCode() { return((m_dictionary == null) ? 0 : m_dictionary.GetHashCode()); }
public int GetHashCode(Dictionary <string, string> x) { return(x.GetHashCode()); }
/// <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() { return(items != null ? items.GetHashCode() : 0); }
public override int GetHashCode() { return(HashUtilities.Combine(_trackedInstanceFieldLocationsOpt?.GetHashCode() ?? 0, base.GetHashCode())); }
public override int GetHashCode() { return(_dict.GetHashCode()); }