Skip to content

Instantly share code, notes, and snippets.

@pparadis
Created April 12, 2012 00:57
Embed
What would you like to do?
Configuration class
class Configuration
{
private String _server { get; set; }
private int _timeout { get; set; }
private int _port { get; set; }
public Configuration SetPort(int port)
{
_port = port;
return this;
}
public Configuration SetServer(String server)
{
_server = server;
return this;
}
public Configuration SetTimeout(int timeout)
{
_timeout = timeout;
return this;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment