Kamis, 10 Februari 2011
Enums and inheritance in .Net
In one of my current projects I had the following code (I simplified the code a bit):public string ConnectionString{ get { switch(this.Importer) { case Importer.SqlServer: return "Server=localhost;Database=Northwind"; case Importer.SqlServerOleDb: return"Provider=SQLOLEDB;Data Source=localhost;Initial Catalog=Northwind";
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar