How can we create a parameterized properties in C#

Posted by Shantanu Gupta on Stack Overflow See other posts from Stack Overflow or by Shantanu Gupta
Published on 2010-05-07T04:28:40Z Indexed on 2010/05/07 4:38 UTC
Read the original article Hit count: 247

Filed under:
|
|

How can I create a parameterized properties in C#.

public readonly string ConnectionString(string ConnectionName)
{
    get { return System.Configuration.ConfigurationManager.ConnectionStrings[ConnectionName].ToString(); }
}

© Stack Overflow or respective owner

Related posts about c#

Related posts about properties