System.Text.Encoding.Clone C# (CSharp) 메소드

Clone() 개인적인 메소드

private Clone ( ) : Object
리턴 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