Skip to content

Commit

Permalink
#27: Added [CodeFilePath] attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinCelej committed Jan 6, 2024
1 parent 24cf8a7 commit 5709d50
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System.Diagnostics;
using System.Runtime.CompilerServices;

namespace Synergy.Documentation.Annotations;

[Conditional("DOCUMENTATION")]
public class CodeFilePathAttribute : Attribute
{
public string FilePath { get; }

public CodeFilePathAttribute([CallerFilePath] string filePath = "")
{
FilePath = filePath;
}
}

0 comments on commit 5709d50

Please sign in to comment.