Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ SetExceptions() [1/2]

unsafe void System.Reflection.Emit.DynamicILInfo.SetExceptions ( byte * exceptions,
int exceptionsSize )
inline

Definition at line 73 of file DynamicILInfo.cs.

74 {
75 if (exceptionsSize < 0)
76 {
77 throw new ArgumentOutOfRangeException("exceptionsSize", SR.ArgumentOutOfRange_GenericPositive);
78 }
79 if (exceptionsSize > 0 && exceptions == null)
80 {
81 throw new ArgumentNullException("exceptions");
82 }
83 m_exceptions = new Span<byte>(exceptions, exceptionsSize).ToArray();
84 }

References System.SR.ArgumentOutOfRange_GenericPositive, System.exceptions, System.Reflection.Emit.DynamicILInfo.m_exceptions, and System.Span< T >.ToArray().