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

◆ ExecuteAssembly() [1/4]

static int System.AppDomain.ExecuteAssembly ( Assembly assembly,
string[] args )
inlinestaticprivate

Definition at line 247 of file AppDomain.cs.

248 {
249 MethodInfo entryPoint = assembly.EntryPoint;
250 if (entryPoint == null)
251 {
252 throw new MissingMethodException(SR.Arg_EntryPointNotFoundException);
253 }
254 object obj = entryPoint.Invoke(null, BindingFlags.DoNotWrapExceptions, null, (entryPoint.GetParameters().Length == 0) ? null : new object[1] { args }, null);
255 if (obj == null)
256 {
257 return 0;
258 }
259 return (int)obj;
260 }
virtual ? MethodInfo EntryPoint
Definition Assembly.cs:66
ParameterInfo[] GetParameters()
object? Invoke(object? obj, object?[]? parameters)

References System.SR.Arg_EntryPointNotFoundException, System.Reflection.Assembly.EntryPoint, System.Reflection.MethodBase.GetParameters(), System.Reflection.MethodBase.Invoke(), and System.obj.