mirror of
				https://github.com/esiur/esiur-dotnet.git
				synced 2025-10-30 15:41:35 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			452 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			452 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using Esiur.Data;
 | |
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.Text;
 | |
| 
 | |
| namespace Esiur.Resource
 | |
| {
 | |
|     [AttributeUsage(AttributeTargets.Class | AttributeTargets.Enum)]
 | |
|     public class ClassIdAttribute : Attribute
 | |
|     {
 | |
|         public UUID ClassId { get; private set; }
 | |
| 
 | |
|         public ClassIdAttribute(string classId)
 | |
|         {
 | |
|             var data = DC.FromHex(classId, null);
 | |
|             ClassId = new UUID(data);
 | |
|         }
 | |
|     }
 | |
| }
 |