/// <summary> /// Returns the bucket (weight) as a Long for the provided key if it exists, /// otherwise null if it does not. /// </summary> public virtual object Get(string key) { int bucket = normalCompletion.GetBucket(key); return(bucket == -1 ? (long?)null : Convert.ToInt64(bucket)); }
/// <summary> /// Returns the bucket (weight) as a <see cref="T:long?"/> for the provided key if it exists, /// otherwise null if it does not. /// </summary> public virtual long?Get(string key) { int bucket = normalCompletion.GetBucket(key); return(bucket == -1 ? null : bucket); }