mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-04-04 12:28:21 +00:00
Layout
This commit is contained in:
29
Libraries/Esiur/Resource/AnnotationAttribute.cs
Normal file
29
Libraries/Esiur/Resource/AnnotationAttribute.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Esiur.Resource;
|
||||
|
||||
[AttributeUsage(AttributeTargets.Interface | AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Method | AttributeTargets.Event | AttributeTargets.Parameter, AllowMultiple = true)]
|
||||
public class AnnotationAttribute : Attribute
|
||||
{
|
||||
|
||||
public readonly string? Key;
|
||||
public readonly string Value;
|
||||
|
||||
public AnnotationAttribute(string annotation)
|
||||
{
|
||||
Key = "";
|
||||
Value = annotation;
|
||||
}
|
||||
public AnnotationAttribute(string key, string value)
|
||||
{
|
||||
Key = key;
|
||||
Value = value;
|
||||
}
|
||||
|
||||
//public AnnotationAttribute(params string[] annotations)
|
||||
//{
|
||||
// this.Annotation = String.Join("\n", annotations);
|
||||
//}
|
||||
}
|
||||
Reference in New Issue
Block a user