System.Xml.Xsl.Qil.SubstitutionList.RemoveLastNSubstitutionPairs C# (CSharp) Method

RemoveLastNSubstitutionPairs() public method

Remove the last N substitution pairs
public RemoveLastNSubstitutionPairs ( int n ) : void
n int
return void
        public void RemoveLastNSubstitutionPairs(int n) {
            Debug.Assert(n >= 0, "n must be nonnegative");
            if (n > 0) {
                n *= 2;
                s.RemoveRange(s.Count - n, n);
            }
        }