I am just being picky and really wanted some of my code to look, feel, and be used a specific way but am not sure if its possible.
I have a class I created that can be used like this
Query("ServerName", "TSQL").Run()
sample:
class Query
{
public string serverName { get; set; }
public string tSQL { get; set; }
public Query(string ServerName, string TSQL)
{
serverName = ServerName;
tSQL = TSQL;
}
public void Run()
{
//DO STUFF
}
}
is it possible to create a class and sub classes so that I use it like this
Query.Server("ServerName").TSQL("TSQL").Run()