Created
July 23, 2012 05:43
-
-
Save sandrinodimattia/3162122 to your computer and use it in GitHub Desktop.
ServerConfigurationSection
This file contains hidden or 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
public class ServerConfigurationSection : ConfigurationSection, IServerConfiguration | |
{ | |
[ConfigurationProperty("server", IsRequired = true)] | |
public string Server | |
{ | |
get { return (string)this["server"]; } | |
set { this["server"] = value; } | |
} | |
[ConfigurationProperty("port", IsRequired = false)] | |
public int Port | |
{ | |
get { return (int)this["port"]; } | |
set { this["port"] = value; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment