HyperlinkInfo GetHyperlinkInfo(TextRun run) { RunIndex runIndex = run.GetRunIndex(); Field field = PieceTable.FindFieldByRunIndex(runIndex); System.Diagnostics.Debug.Assert(field != null); HyperlinkInfo hyperlinkInfo = null; if (PieceTable.HyperlinkInfos.TryGetHyperlinkInfo(field.Index, out hyperlinkInfo)) { return(hyperlinkInfo); } return(null); }
public override int GetHashCode() { int hash = 1; if (Step.Length != 0) { hash ^= Step.GetHashCode(); } if (image_ != null) { hash ^= Image.GetHashCode(); } if (RunIndex != 0L) { hash ^= RunIndex.GetHashCode(); } if (duration_ != null) { hash ^= Duration.GetHashCode(); } hash ^= logLines_.GetHashCode(); if (ExitCode != 0L) { hash ^= ExitCode.GetHashCode(); } if (Status.Length != 0) { hash ^= Status.GetHashCode(); } if (AutoInjected != false) { hash ^= AutoInjected.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }