mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-05-06 19:42:58 +00:00
21 lines
595 B
C#
21 lines
595 B
C#
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)]
|
|
public class AnnotationAttribute : Attribute
|
|
{
|
|
|
|
public string Annotation { get; set; }
|
|
public AnnotationAttribute(string annotation)
|
|
{
|
|
this.Annotation = annotation;
|
|
}
|
|
public AnnotationAttribute(params string[] annotations)
|
|
{
|
|
this.Annotation = String.Join("\n", annotations);
|
|
}
|
|
}
|