// Token: 0x060017E4 RID: 6116 RVA: 0x0008D1B0 File Offset: 0x0008B3B0 public EasDeviceBudgetKey(SecurityIdentifier sid, string deviceId, string deviceType, ADSessionSettings settings) : base(sid, BudgetType.Eas, false, settings) { ArgumentValidator.ThrowIfNullOrEmpty("deviceId", deviceId); ArgumentValidator.ThrowIfNullOrEmpty("deviceType", deviceType); this.DeviceId = deviceId; this.DeviceType = deviceType; this.cachedHashCode = (sid.GetHashCode() ^ deviceId.GetHashCode() ^ deviceType.GetHashCode()); this.cachedToString = string.Format("{0}_{1}_{2}", base.NtAccount, this.DeviceId, this.DeviceType); }
/// <summary> /// Serves as the default hash function. /// </summary> /// <returns> /// A hash code for the current object. /// </returns> public override int GetHashCode() { unchecked { var hashCode = _sid.GetHashCode(); hashCode = (hashCode * 397) ^ Type.GetHashCode(); hashCode = (hashCode * 397) ^ (int)TickType; hashCode = (hashCode * 397) ^ (int)Resolution; hashCode = (hashCode * 397) ^ FillDataForward.GetHashCode(); hashCode = (hashCode * 397) ^ ExtendedMarketHours.GetHashCode(); hashCode = (hashCode * 397) ^ IsInternalFeed.GetHashCode(); hashCode = (hashCode * 397) ^ IsCustomData.GetHashCode(); hashCode = (hashCode * 397) ^ DataTimeZone.GetHashCode(); hashCode = (hashCode * 397) ^ ExchangeTimeZone.GetHashCode(); hashCode = (hashCode * 397) ^ IsFilteredSubscription.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { return(_sid.GetHashCode()); }
/// <summary>Returns a hash code for this instance.</summary> /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns> public override int GetHashCode() => sid?.GetHashCode() ?? 0;
public override int GetHashCode() { SecurityIdentifier lSid = new SecurityIdentifier(m_Sid.BinarySid, 0); return(lSid.GetHashCode()); }
public override int GetHashCode() { return(SecurityIdentifier != null ? SecurityIdentifier.GetHashCode() : 0); }
public void GetHashCodeWithCurrentUserTest() { var sid = new SecurityIdentifier(currentUser.GetBinaryForm(), 0); Assert.AreEqual(sid.GetHashCode(), currentUser.GetHashCode()); }
public override int GetHashCode() { return(SecurityIdentifier.GetHashCode()); }