public bool Equals(IInjectionMessage other) { if (ReferenceEquals(null, other)) { return(false); } return(InjectionType.Equals(other.InjectionType) && (InjectedObject?.Equals(other.InjectedObject) ?? false) && InjectionDetectionTime.Equals(other.InjectionDetectionTime)); }
public override int GetHashCode() { unchecked { return(-590645308 * (int)InjectionType * InjectionDetectionTime.GetHashCode() * (InjectedObject?.GetHashCode() ?? 1)); } }
public override string ToString() { return($"{nameof(InjectionType)} = \"{InjectionType}\", " + $"{nameof(InjectionDetectionTime)} = \"{InjectionDetectionTime}\", " + $"Injected object type = \"{InjectedObject?.GetType().Name ?? "null"}"); }
public InjectionCommand(InjectedObject value) { this.Value = value; }