public enum ConnectionType { Sql, OleDB, ODBC }Then your switch looks like:
switch (iConnectionType) { // Sql Data Provider case ConnectionType.Sql: ... }Members of a class are also normally either private or protected. If you need to expose them, create a property (a member with a get/set).
private string sConnString = ""; public string ConnString { get { return this.sConnString; } set { this.sConnString = value; } }Also, I think you'll find most .NET devs don't use type prefixes like we do in VFP. Local vars/parameters are camel case (lowerCase). Members are either name m_memberName or _memberName. Properties are usually ProperCase.