about summary refs log tree commit diff
path: root/MatrixRoomUtils.Core/Attributes/TraceAttribute.cs
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-06-18 07:03:47 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-06-18 07:04:00 +0200
commitd4f46b4fb6dfd2672a5205ec9de12050a940f56c (patch)
tree90be2b959a41148da84aaffbb1b0a1163aa3288e /MatrixRoomUtils.Core/Attributes/TraceAttribute.cs
parentStart refactor (diff)
downloadMatrixUtils-d4f46b4fb6dfd2672a5205ec9de12050a940f56c.tar.xz
Partial refactor
Diffstat (limited to 'MatrixRoomUtils.Core/Attributes/TraceAttribute.cs')
-rw-r--r--MatrixRoomUtils.Core/Attributes/TraceAttribute.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/MatrixRoomUtils.Core/Attributes/TraceAttribute.cs b/MatrixRoomUtils.Core/Attributes/TraceAttribute.cs
new file mode 100644
index 0000000..34a0b67
--- /dev/null
+++ b/MatrixRoomUtils.Core/Attributes/TraceAttribute.cs
@@ -0,0 +1,10 @@
+using System.Runtime.CompilerServices;
+
+namespace MatrixRoomUtils.Core.Attributes; 
+
+[AttributeUsage(AttributeTargets.All)]
+public class TraceAttribute : Attribute {
+    public TraceAttribute([CallerMemberName] string callerName = "") {
+        Console.WriteLine($"{callerName} called!");
+    }
+}
\ No newline at end of file