User-974017120 posted
There is no MarshalByRefType in System. (And I'm guessing you've already got a reference to System in your project)
Anyway, If you're talking about the MSDN sample code for AppDomain, the "MarshalByRefType" is defined at the bottom of the code snippet. Not obvious at first, I know! Plus, it sounds like something you'd find in some .NET class, but it isnt.
In your code you'd replace it with the class of yours that you want to load and unload. just change your class to inherit from MarshalByRefObject, then you can use the code.