2 * declsec.c: Declarative Security support
5 * Sebastien Pouliot <sebastien@ximian.com>
7 * Copyright (C) 2004 Novell, Inc (http://www.novell.com)
13 * Does the methods (or it's class) as any declarative security attribute ?
14 * Is so are they applicable ? (e.g. static class constructor)
17 mono_method_has_declsec (MonoMethod *method)
19 if (method->wrapper_type != MONO_WRAPPER_NONE)
22 if ((method->klass->flags & TYPE_ATTRIBUTE_HAS_SECURITY) || (method->flags & METHOD_ATTRIBUTE_HAS_SECURITY)) {
23 /* ignore static constructors */
24 if (strcmp (method->name, ".cctor"))