about summary refs log tree commit diff
path: root/MatrixRoomUtils.Core/Attributes
diff options
context:
space:
mode:
Diffstat (limited to 'MatrixRoomUtils.Core/Attributes')
-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