Merge pull request #61 from ztzg/darwin-static-build-fixes
[mono.git] / mono / metadata / security-core-clr.h
index 9c9f917699af94dc6cf84d5818d52b32d1613f1a..96407dadf282cc6630f7e99f7045be140568d9be 100644 (file)
@@ -21,9 +21,18 @@ typedef enum {
 } MonoSecurityCoreCLRLevel;
 
 typedef enum {
+       //The following flags can be used in combination, and control specific behaviour of the CoreCLR securit system.
+
+       //Default coreclr behaviour, as used in moonlight.
        MONO_SECURITY_CORE_CLR_OPTIONS_DEFAULT = 0,
+
+       //Allow transparent code to execute methods and access fields that are not in platformcode,
+       //even if those methods and fields are private or otherwise not visible to the calling code.
        MONO_SECURITY_CORE_CLR_OPTIONS_RELAX_REFLECTION = 1,
-       MONO_SECURITY_CORE_CLR_OPTIONS_RELAX_DELEGATE = 2,
+
+       //Allow delegates to be created that point at methods that are not in platformcode,
+       //even if those methods and fields are private or otherwise not visible to the calling code.
+       MONO_SECURITY_CORE_CLR_OPTIONS_RELAX_DELEGATE = 2
 } MonoSecurityCoreCLROptions;
 
 extern gboolean mono_security_core_clr_test;