/// <summary> /// Constructor /// </summary> /// <param name="kind">Code kind</param> /// <param name="optimization">Optimization kind</param> /// <param name="blocks">All blocks to disassemble</param> /// <param name="codeInfo">Extra code info or null</param> /// <param name="methodName">Method name or null</param> public DbgDotNetNativeCode(NativeCodeKind kind, NativeCodeOptimization optimization, DbgDotNetNativeCodeBlock[] blocks, X86NativeCodeInfo codeInfo, string methodName) { Kind = kind; Optimization = optimization; Blocks = blocks ?? throw new ArgumentNullException(nameof(blocks)); CodeInfo = codeInfo; MethodName = methodName; }
/// <summary> /// Constructor /// </summary> /// <param name="kind">Code kind</param> /// <param name="optimization">Optimization kind</param> /// <param name="blocks">All blocks to disassemble</param> /// <param name="codeInfo">Extra code info or null</param> /// <param name="variableInfo">Variable info or null</param> /// <param name="methodName">Method name or null</param> public NativeCode(NativeCodeKind kind, NativeCodeOptimization optimization, NativeCodeBlock[] blocks, NativeCodeInfo codeInfo, NativeVariableInfo[] variableInfo, string methodName) { Kind = kind; Optimization = optimization; Blocks = blocks ?? throw new ArgumentNullException(nameof(blocks)); CodeInfo = codeInfo; VariableInfo = variableInfo; MethodName = methodName; }
/// <summary> /// Constructor /// </summary> /// <param name="kind">Code kind</param> /// <param name="optimization">Optimization kind</param> /// <param name="blocks">All blocks to disassemble</param> /// <param name="codeInfo">Extra code info or null</param> /// <param name="methodName">Method name or null</param> /// <param name="shortMethodName">Short method name or null</param> /// <param name="moduleName">Module name or null</param> public DbgDotNetNativeCode(NativeCodeKind kind, NativeCodeOptimization optimization, DbgDotNetNativeCodeBlock[] blocks, NativeCodeInfo?codeInfo, string?methodName, string?shortMethodName, string?moduleName) { Kind = kind; Optimization = optimization; Blocks = blocks ?? throw new ArgumentNullException(nameof(blocks)); CodeInfo = codeInfo; MethodName = methodName; ShortMethodName = shortMethodName; ModuleName = moduleName; }