using System; using Cpp2IlInjected; namespace System.Runtime.ConstrainedExecution { /// Specifies a method's behavior when called within a constrained execution region. // Token: 0x0200052E RID: 1326 [Token(Token = "0x200052E")] [Serializable] public enum Cer { /// The method, type, or assembly has no concept of a CER. It does not take advantage of CER guarantees. This implies the following: // Token: 0x04001862 RID: 6242 [Token(Token = "0x4001862")] None, /// In the face of exceptional conditions, the method might fail. In this case, the method will report back to the calling method whether it succeeded or failed. The method must have a CER around the method body to ensure that it can report the return value. // Token: 0x04001863 RID: 6243 [Token(Token = "0x4001863")] MayFail, /// In the face of exceptional conditions, the method is guaranteed to succeed. You should always construct a CER around the method that is called, even when it is called from within a non-CER region. A method is successful if it accomplishes what is intended. For example, marking with ReliabilityContractAttribute(Cer.Success) implies that when it is run under a CER, it always returns a count of the number of elements in the and it can never leave the internal fields in an undetermined state. // Token: 0x04001864 RID: 6244 [Token(Token = "0x4001864")] Success } }