public sealed class Rules : IEquatable<Rules>
A collection of Rules.

Properties

All

#
public IEnumerable<Rule> All { get; }
Enumerate over all rules.

CiteCount

#
public int CiteCount { get; }
Counts the number of citation rules in this set.

Count

#
public int Count { get; }
Gets the number of rules.

Effective

#
public IEnumerable<Rule> Effective { get; }
Enumerate over all effective rules (i.e. omitting all comments).

EffectiveCount

#
public int EffectiveCount { get; }
Gets the number of effective rules.

Empty

#
public static Rules Empty { get; }
Gets an empty rule set.

Methods

Add

#
public Rules Add(params Rule[] rules)
Add a rule to this collection.
rules (params Rule[])

Equals

#
public bool Equals(Rules other)
other (Rules)

FromString

#
public static Rules FromString(string text, out string[] errors)
Parse a multiline string for rules.
text (string)
errors (out string[])

ToString

#
public override string ToString()
Create a multi-line string with one rule per line.
Object.ToString