Hi all
I want to get the connection string from the config file
but i am confused here
I make a code in the VB.NET but what about the c#
See my code in the VB.NET

VB Code:
  1. Public Property ConnectionStringName() As String
  2.         Get
  3.             Return _ConnectionStringName
  4.         End Get
  5.         Set(ByVal value As String)
  6.             If value Is Nothing Or value = "" Then
  7.                 Throw New Exception("Can not set null value in Connection String!!!")
  8.             End If
  9.             _ConnectionStringName = value
  10.             _ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings(value).ConnectionString
  11.                   End Set
  12.  
  13.     End Property