Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpbcgr.Client_Security_Exchange_Pdu.Clone C# (CSharp) Method

Clone() public method

Create an instance of the class that is identical to the current PDU.
public Clone ( ) : StackPacket
return StackPacket
        public override StackPacket Clone()
        {
            Client_Security_Exchange_Pdu cloneSecurityPdu = new Client_Security_Exchange_Pdu(context);

            cloneSecurityPdu.commonHeader = commonHeader.Clone();
            cloneSecurityPdu.securityExchangePduData = securityExchangePduData;
            cloneSecurityPdu.securityExchangePduData.clientRandom =
                RdpbcgrUtility.CloneByteArray(securityExchangePduData.clientRandom);

            return cloneSecurityPdu;
        }