2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 05:23:13 +00:00

Type Annotation

This commit is contained in:
2022-06-11 18:50:08 +03:00
parent 70ac2db694
commit 80922a13ee
6 changed files with 102 additions and 24 deletions

View File

@ -4,7 +4,7 @@ using System.Text;
namespace Esiur.Resource;
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Method | AttributeTargets.Event)]
[AttributeUsage(AttributeTargets.Interface | AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Method | AttributeTargets.Event)]
public class AnnotationAttribute : Attribute
{
@ -13,4 +13,8 @@ public class AnnotationAttribute : Attribute
{
this.Annotation = annotation;
}
public AnnotationAttribute(params string[] annotations)
{
this.Annotation = String.Join("\n", annotations);
}
}