Microsoft.Protocols.TestTools.StackSdk.RemoteDesktop.Rdpbcgr.Client_Security_Exchange_Pdu.Clone C# (CSharp) Méthode

Clone() public méthode

Create an instance of the class that is identical to the current PDU.
public Clone ( ) : StackPacket
Résultat 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;
        }