public override int GetHashCode() { unchecked { var result = (TypeName != null ? TypeName.GetHashCode() : 0); result = (result * 397) ^ (AssemblyLocation != null ? AssemblyLocation.GetHashCode() : 0); result = (result * 397) ^ (Id != null ? Id.GetHashCode() : 0); return(result); } }
public override int GetHashCode() { unchecked { int result = base.GetHashCode(); result = (result * 397) ^ AssemblyLocation.GetHashCode(); result = (result * 397) ^ ContextTypeName.GetHashCode(); result = (result * 397) ^ RunExplicitly.GetHashCode(); return(result); } }
public override int GetHashCode() { unchecked { // Don't include base.GetHashCode, as RemoteTask.GetHashCode includes RemoteTask.Id // in the calculation, and this is a new guid generated for each new instance. // This would mean two instances that return true from Equals (i.e. value objects) // would have different hash codes return(AssemblyLocation != null?AssemblyLocation.GetHashCode() : 0); } }
public override int GetHashCode() { unchecked { // Don't include base.GetHashCode, as RemoteTask.GetHashCode includes RemoteTask.Id // in the calculation, and this is a new guid generated for each new instance. // This would mean two instances that return true from Equals (i.e. value objects) // would have different hash codes int result = (TypeName != null ? TypeName.GetHashCode() : 0); result = (result * 397) ^ (MethodName != null ? MethodName.GetHashCode() : 0); result = (result * 397) ^ (Parameters != null ? Parameters.GetHashCode() : 0); result = (result * 397) ^ (AssemblyLocation != null ? AssemblyLocation.GetHashCode() : 0); return(result); } }