Skip to content

Instantly share code, notes, and snippets.

@pparadis
Created April 12, 2012 00:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pparadis/2363900 to your computer and use it in GitHub Desktop.
Save pparadis/2363900 to your computer and use it in GitHub Desktop.
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