I need to create a class object dynamically. I attempted this using the dynamic keyword.
dynamic dataTransferObject = new dtoClass();
dataTransferObject.Property1= "someValue";
dataTransferObject.Property2= "someOtherValue";
LogicLayer.Update(dataTransferObject);
I will interpret the object to perform further action inside of the logic layer. The compiler does not like my syntax, please advise!