Exemplo n.º 1
0
 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));
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(-590645308
                * (int)InjectionType
                * InjectionDetectionTime.GetHashCode()
                * (InjectedObject?.GetHashCode() ?? 1));
     }
 }
Exemplo n.º 3
0
 public override string ToString()
 {
     return($"{nameof(InjectionType)} = \"{InjectionType}\", " +
            $"{nameof(InjectionDetectionTime)} = \"{InjectionDetectionTime}\", " +
            $"Injected object type = \"{InjectedObject?.GetType().Name ?? "null"}");
 }
Exemplo n.º 4
0
 public InjectionCommand(InjectedObject value)
 {
     this.Value = value;
 }