Skip to content
This repository was archived by the owner on Apr 17, 2022. It is now read-only.

Commit d49a748

Browse files
author
Sharkbyteprojects
committed
add public private mod
1 parent 504e52e commit d49a748

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compilerTool/il decoMod.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ public override void runPayload()
3939
namespacess.Add($"${method.FullName}");
4040
var fi = method.Body.Instructions.First();
4141
var li = method.Body.Instructions.Last();
42+
string tp = method.IsPublic ? "public " :(method.IsPrivate?"private ":"");
4243
ilProc.InsertBefore(fi, Instruction.Create(OpCodes.Ldstr,
4344
String.Concat(
4445
"-- Modified by SharkDebug\n",
4546
module.IsMain ? "-- Running as: \"{0}\"\n" : "",
46-
$"-- Entering \"{method.Name}\" of \"{type.Namespace}::{type.Name}\""
47+
$"-- Entering {tp}\"{method.Name}\" of \"{type.Namespace}::{type.Name}\""
4748
)));
4849
if (module.IsMain)
4950
{

0 commit comments

Comments
 (0)