Hi Stefany,
the error occurs because you didn’t imported BindingFlags
from System.Reflection
as illustrated in my example.
I don’t know why, but you copied everything except the import part
In my version I also got rid of the useless ProtoGeometry
import and switched to the Interop.RobotOM.dll
that you can find in RSA installation directory, instead of fiddling with users directories.