Esempio n. 1
0
        /// <summary>
        /// Adds a new replace rule that replaces with the result of the given callback.
        /// </summary>
        public ReplaceRule AddReplace(string inId, TryReplaceDelegate inReplace)
        {
            CheckLocked();

            ReplaceRule rule = FindOrCreateReplaceRule(inId);

            rule.TryReplaceWith(inReplace);
            return(rule);
        }