private void AddSpecialCaseDetails(InnerError error) { if (!error.Data.ContainsKey(Error.KnownDataKeys.ExtraProperties)) return; var extraProperties = error.Data.GetValue<Dictionary<string, object>>(Error.KnownDataKeys.ExtraProperties); if (extraProperties == null) { error.Data.Remove(Error.KnownDataKeys.ExtraProperties); return; } object value; if (extraProperties.TryGetValue("Number", out value)) SignatureInfo.Add("Number", value.ToString()); if (extraProperties.TryGetValue("ErrorCode", out value)) SignatureInfo.Add("ErrorCode", value.ToString()); }
protected bool Equals(InnerError other) { return(String.Equals(Message, other.Message) && String.Equals(Type, other.Type) && String.Equals(Code, other.Code) && Equals(Data, other.Data) && Equals(Inner, other.Inner) && StackTrace.CollectionEquals(other.StackTrace) && Equals(TargetMethod, other.TargetMethod)); }
protected bool Equals(InnerError other) { return string.Equals(Message, other.Message) && string.Equals(Type, other.Type) && string.Equals(Code, other.Code) && Equals(Data, other.Data) && Equals(Inner, other.Inner) && StackTrace.CollectionEquals(other.StackTrace) && Equals(TargetMethod, other.TargetMethod); }