private static void EnsureEachLinkIsAnyOrExists(Pairs.Links links, params ulong[] sequence) { if (sequence == null) return; for (var i = 0; i < sequence.Length; i++) if (sequence[i] != Pairs.Links.Null && !links.Exists(sequence[i])) throw new ArgumentLinkDoesNotExistsException<ulong>(sequence[i], string.Format("patternSequence[{0}]", i)); }