mirror of
				https://github.com/esiur/esiur-dotnet.git
				synced 2025-10-30 23:51:34 +00:00 
			
		
		
		
	Type Annotation
This commit is contained in:
		| @@ -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); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user