mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2025-05-06 19:42:58 +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 Guid ClassId { get; private set; }
|
|
|
|
public ClassIdAttribute(string classId)
|
|
{
|
|
var data = DC.FromHex(classId, null);
|
|
ClassId = new Guid(data);
|
|
}
|
|
}
|
|
}
|