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

◆ CheckContext() [1/2]

static void System.Reflection.Emit.AssemblyBuilder.CheckContext ( params Type[] types)
inlinestaticpackage

Definition at line 187 of file AssemblyBuilder.cs.

188 {
189 if (types == null)
190 {
191 return;
192 }
193 foreach (Type type in types)
194 {
195 if (!(type == null))
196 {
197 if (type.Module == null || type.Module.Assembly == null)
198 {
199 throw new ArgumentException(SR.Argument_TypeNotValid);
200 }
201 _ = type.Module.Assembly == typeof(object).Module.Assembly;
202 }
203 }
204 }

References System.SR.Argument_TypeNotValid, and System.type.