System.Text.Encoding.Clone C# (CSharp) Method

Clone() private method

private Clone ( ) : Object
return Object
        public virtual Object Clone()
        {
            Encoding newEncoding = (Encoding)this.MemberwiseClone();

            // New one should be readable
            newEncoding.m_isReadOnly = false;
            return newEncoding;
        }

Usage Example

示例#1
0
 internal P4FormRecordSet(string FormCommand, System.Text.Encoding encoding)
 {
     // clone this so we don't hold a reference to another object's encoding object
     // preventing it from Garbage collecting.
     _encoding    = (System.Text.Encoding)encoding.Clone();
     _FormCommand = FormCommand;
 }
All Usage Examples Of System.Text.Encoding::Clone