/// <summary> /// For backwards compatibility /// </summary> /// <param name="bbCode"> /// The bb Code. /// </param> /// <param name="message"> /// the message to add smiles to. /// </param> /// <returns> /// The add smiles. /// </returns> public static string AddSmiles([NotNull] this IBBCode bbCode, [NotNull] string message) { var layers = new ProcessReplaceRules(); bbCode.AddSmiles(layers); // apply... layers.Process(ref message); return message; }
/// <summary> /// This clone method is a Deep Clone -- including all data. /// </summary> /// <returns> /// The clone. /// </returns> public object Clone() { var copyReplaceRules = new ProcessReplaceRules(); // move the rules over... var ruleArray = new IReplaceRule[this._rulesList.Count]; this._rulesList.CopyTo(ruleArray); copyReplaceRules._rulesList.InsertRange(0, ruleArray); copyReplaceRules._needSort = this._needSort; return(copyReplaceRules); }
/// <summary> /// This clone method is a Deep Clone -- including all data. /// </summary> /// <returns> /// The clone. /// </returns> public object Clone() { var copyReplaceRules = new ProcessReplaceRules(); // move the rules over... var ruleArray = new IReplaceRule[this._rulesList.Count]; this._rulesList.CopyTo(ruleArray); copyReplaceRules._rulesList.InsertRange(0, ruleArray); copyReplaceRules._needSort = this._needSort; return copyReplaceRules; }