From d4f46b4fb6dfd2672a5205ec9de12050a940f56c Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sun, 18 Jun 2023 07:03:47 +0200 Subject: Partial refactor --- MatrixRoomUtils.Core/Attributes/TraceAttribute.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 MatrixRoomUtils.Core/Attributes/TraceAttribute.cs (limited to 'MatrixRoomUtils.Core/Attributes/TraceAttribute.cs') 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 -- cgit 1.4.1