Adding a reference to plugin dll in C# script?

In a Python script, I can add a reference to my plugin dll, and use the plugin classes in the script, as in the following example script. Is there a way to get the same functionality in a C# script ?

#! python 3
import rhinoscriptsyntax as rs
import Rhino
import clr
clr.AddReference(“<plugin_path>\MyPlugin.rhp”)
import MyPlugin

d = MyPlugin.SomeClass()
d.SomeProperty= “a”

Any suggestions are welcome.

In Rhino8 you can add

#r "<plugin_path>\MyPlugin.rhp"

to the top of your script.

Thanks a lot. That is indeed what I was looking for