Follow the basic layout of classes, a class has fields, methods , destructor and constructor...
What it does not have for sure is something you wrote...
Put those method calls in some kind of method ... , assign the vars like FTP, and hostname in the constructor or another suited place.
Code:
using System.Collections.Generic;
using System.Text;
using WeOnlyDo.Client;
namespace TestFtp
{
abstract class FtpConn
{
private FtpDLX ftpOne;
public FtpConn() {
this.ftpOne = new FtpDLX();
this.ftpOne.Hostname = "22.21.231.222 [3]";
this.ftpOne.Protocol = "FTP";
this.ftpOne.Connect();
}
public void PutFile(string a , string b) {
this.ftpOne.PutFile(a,b);
}
}
}
That looks more like a class to me.
Sry for the crappy indentation, thats because of how cboard handles copy paste code tags when typing your own post.