Clone() public method

Creates a clone of this MySqlCommand object. CommandText, Connection, and Transaction properties are included as well as the entire parameter list.
public Clone ( ) : MySqlCommand
return MySqlCommand
 public virtual void CloneCommand()
 {
     MySqlCommand cmd = new MySqlCommand();
       MySqlCommand newCommand = cmd.Clone();
     #if !RT
       IDbCommand newCommand2 = (IDbCommand)(cmd as ICloneable).Clone();
     #endif
 }
		public void CloneCommand() 
		{
			MySqlCommand cmd = new MySqlCommand();
            MySqlCommand newCommand = cmd.Clone();
            IDbCommand newCommand2 = (IDbCommand)(cmd as ICloneable).Clone();
		}