Say we create a Data Access Layer Interface that multiple versions of the Data Access Layer (DAL) will Implement (Oracle version, SQL Server version, etc.)
Now what is the best way for the client to create an instance of the DAL. Until recently I would have used Activator.CreateInstance But someone recently showed me if I make 2 Assemblies with the exact same NameSpace and class names and they both Implement the Interface. I can simply drop the assembly in the Bin directory and as long as all the names are the same the CLR will load the class from whatever Assembly is in the Bin when the New operator is executed. Is this safe? Smart? Thanks in Advance Keith A Franklin You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.