Sicherung
This commit is contained in:
31
Kalk/Kalk.Core/KalkExportAttribute.cs
Normal file
31
Kalk/Kalk.Core/KalkExportAttribute.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
|
||||
namespace Kalk.Core
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Field | AttributeTargets.Property)]
|
||||
public class KalkExportAttribute : System.Attribute
|
||||
{
|
||||
public KalkExportAttribute(string alias, string category)
|
||||
{
|
||||
Alias = alias;
|
||||
Category = category;
|
||||
}
|
||||
|
||||
public string Alias { get; }
|
||||
|
||||
public string Category { get; }
|
||||
|
||||
public bool Functor { get; set; }
|
||||
}
|
||||
|
||||
[AttributeUsage(AttributeTargets.Class)]
|
||||
public class KalkExportModuleAttribute : System.Attribute
|
||||
{
|
||||
public KalkExportModuleAttribute(string alias)
|
||||
{
|
||||
Alias = alias;
|
||||
}
|
||||
|
||||
public string Alias { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user