Dim daOrmCustom As New Object
If AdminFunctions.IsDevelopmentOrLocal Then
daOrmCustom = New DataAccess.CustomClass2015()
daOrmCustom = New DataAccess.CustomClass2014()
dataItem("Id").Text = daOrmCustom.GetOptions(CInt(IdStr))
here's what I want to do:
I have to rework an entire class with changes for 2015 and I want to leave the 2014 code in tact and only test with the 2015 code. So in my code, I have it check if we are in development or local, and if so, load the 2015 class, if not load the 2014 class. I have done it as above.
But when I actually use the class, it errors with "option strict on disallows late binding"
What is the best method of implementing the above scenario without any errors? I don't want to remove option strict on if there's another way.