/// ------------------------------------------------------------------------------------ /// <summary> /// Returns a copy of the list. /// </summary> /// ------------------------------------------------------------------------------------ public QuotationMarksList Copy() { QuotationMarksList newList = new QuotationMarksList(); for (int i = 0; i < Levels; i++) { QuotationMarks qm = new QuotationMarks(); qm.Opening = this[i].Opening; qm.Closing = this[i].Closing; newList.Add(qm); } newList.ContinuationMark = ContinuationMark; newList.ContinuationType = ContinuationType; newList.LocaleOfLangUsedFrom = LocaleOfLangUsedFrom; return(newList); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Returns a copy of the list. /// </summary> /// ------------------------------------------------------------------------------------ public QuotationMarksList Copy() { QuotationMarksList newList = new QuotationMarksList(); for (int i = 0; i < Levels; i++) { QuotationMarks qm = new QuotationMarks(); qm.Opening = this[i].Opening; qm.Closing = this[i].Closing; newList.Add(qm); } newList.ContinuationMark = ContinuationMark; newList.ContinuationType = ContinuationType; newList.LocaleOfLangUsedFrom = LocaleOfLangUsedFrom; return newList; }