/// <summary> /// Returns the hash code for this instance. /// </summary> /// <returns> /// A 32-bit signed integer that is the hash code for this instance. /// </returns> /// <filterpriority>2</filterpriority> public override int GetHashCode() { unchecked { return(((EventType != null ? EventType.GetHashCode() : 0) * 397) ^ Phase.GetHashCode()); } }
public override int GetHashCode() { unchecked { int result = (EventType != null ? EventType.GetHashCode() : 0); result = (result * 397) ^ Phase.GetHashCode(); result = (result * 397) ^ (ScriptName != null ? ScriptName.GetHashCode() : 0); result = (result * 397) ^ (MethodName != null ? MethodName.GetHashCode() : 0); result = (result * 397) ^ Enabled.GetHashCode(); return(result); } }