Lucene.Net.Analysis.Tokenattributes.CharTermAttribute.Clone C# (CSharp) Method

Clone() public method

public Clone ( ) : object
return object
        public override object Clone()
        {
            CharTermAttribute t = (CharTermAttribute)base.Clone();
            // Do a deep clone
            t.TermBuffer = new char[this.TermLength];
            Array.Copy(this.TermBuffer, 0, t.TermBuffer, 0, this.TermLength);
            t.Bytes = BytesRef.DeepCopyOf(Bytes);
            return t;
        }