I don't want to create a new class and decided to use anonymous type in order to send data from presentation layer to biz layer.
But my problem is how can I introduce an anonymous type in biz layer? I use Vb.Net 2008 and VS 2008.
EDIT
Actually, I have to work with some data that their nature are really temporary classes and I won't use them again in my own project .
Don't, don't!
If they are living in acorss server boundaries you end up using
dynamic
on the client of your function which is no good.This is because you would probably have to expose the object as
object
in the method signature and you will loose all the benefits of type safety.On the other hand, you are not achieving anything, compiler spits out a class for you anyway.