Configuration class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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