I'm not a CAS expert, but can you decorate a method with [PermissionSet(SecurityAction.Demand, Name = "FullTrust")], then call that method? If the method throws a security exception, you're not running in full trust.
Tech, life, family, faith: Give me a visit. I'm currently blogging about: No, Not I - A poem by Holocaust escapee, chief rabbi, and Messiah-follower Daniel Zion (audio) The apostle Paul, modernly speaking: Epistles of Paul Judah Himango