public new static MutableBooleanPattern CreateFromFalseIndexes(int size, IEnumerable <int> indexes) { var result = new MutableBooleanPattern(size, true); foreach (var i in indexes) { result.PatternValues[i] = false; } return(result); }
public new static MutableBooleanPattern CreateFromUInt64(int size, UInt64 pattern) { if (size > 64) { throw new InvalidOperationException(); } var result = new MutableBooleanPattern(size); for (var i = 0; i < size; i++) { result.PatternValues.Add((pattern & (1UL << i)) != 0); } return(result); }