mirror of
				https://github.com/esiur/esiur-dotnet.git
				synced 2025-10-31 07:51:36 +00:00 
			
		
		
		
	.Net 6 Upgrade
This commit is contained in:
		| @@ -5,43 +5,41 @@ using System.Linq; | ||||
| using System.Text; | ||||
| using System.Threading.Tasks; | ||||
|  | ||||
| namespace Esiur.Resource.Template | ||||
| namespace Esiur.Resource.Template; | ||||
| public class MemberTemplate | ||||
| { | ||||
|     public class MemberTemplate | ||||
|     public enum MemberType | ||||
|     { | ||||
|         public enum MemberType | ||||
|         { | ||||
|             Function = 0, | ||||
|             Property = 1, | ||||
|             Event = 2, | ||||
|             Attribute = 3 | ||||
|         } | ||||
|  | ||||
|         public byte Index => index; | ||||
|         public string Name => name; | ||||
|         public MemberType Type => type; | ||||
|  | ||||
|         TypeTemplate template; | ||||
|         string name; | ||||
|         MemberType type; | ||||
|         byte index; | ||||
|  | ||||
|         public TypeTemplate Template => template; | ||||
|  | ||||
|         public MemberTemplate(TypeTemplate template, MemberType type, byte index, string name) | ||||
|         { | ||||
|             this.template = template; | ||||
|             this.type = type; | ||||
|             this.index = index; | ||||
|             this.name = name; | ||||
|         } | ||||
|  | ||||
|         public string Fullname => template.ClassName + "." + Name; | ||||
|  | ||||
|         public virtual byte[] Compose() | ||||
|         { | ||||
|             return DC.ToBytes(Name); | ||||
|         } | ||||
|         Function = 0, | ||||
|         Property = 1, | ||||
|         Event = 2, | ||||
|         Attribute = 3 | ||||
|     } | ||||
|  | ||||
|     public byte Index => index; | ||||
|     public string Name => name; | ||||
|     public MemberType Type => type; | ||||
|  | ||||
|     TypeTemplate template; | ||||
|     string name; | ||||
|     MemberType type; | ||||
|     byte index; | ||||
|  | ||||
|     public TypeTemplate Template => template; | ||||
|  | ||||
|     public MemberTemplate(TypeTemplate template, MemberType type, byte index, string name) | ||||
|     { | ||||
|         this.template = template; | ||||
|         this.type = type; | ||||
|         this.index = index; | ||||
|         this.name = name; | ||||
|     } | ||||
|  | ||||
|     public string Fullname => template.ClassName + "." + Name; | ||||
|  | ||||
|     public virtual byte[] Compose() | ||||
|     { | ||||
|         return DC.ToBytes(Name); | ||||
|     } | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user