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

◆ CreateSourceName()

string System.Exception.CreateSourceName ( )
inlineprivateinherited

Definition at line 211 of file Exception.cs.

212 {
214 if (stackTrace.FrameCount > 0)
215 {
216 StackFrame frame = stackTrace.GetFrame(0);
217 MethodBase method = frame.GetMethod();
218 Module module = method.Module;
220 if ((object)runtimeModule == null)
221 {
223 {
224 throw new ArgumentException(SR.Argument_MustBeRuntimeReflectionObject);
225 }
226 runtimeModule = moduleBuilder.InternalModule;
227 }
228 return runtimeModule.GetRuntimeAssembly().GetSimpleName();
229 }
230 return null;
231 }
virtual ? MethodBase GetMethod()
virtual ? string StackTrace
Definition Exception.cs:143

References System.SR.Argument_MustBeRuntimeReflectionObject, System.Runtime.Serialization.Dictionary, System.Diagnostics.StackFrame.GetMethod(), and System.Exception.StackTrace.