CSHARP-603: added security attributes to methods to mark them as SecurityCritical or SecuritySafeCritical, depending on context.