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