2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 13:33:13 +00:00
This commit is contained in:
2024-12-05 15:11:24 +03:00
parent 2bccebd419
commit ebc80b08cf
7 changed files with 98 additions and 20 deletions

View File

@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Linq;
namespace Esiur.Resource;
@ -8,10 +9,29 @@ namespace Esiur.Resource;
public class ExportAttribute : Attribute
{
public string Name { get; set; }
public string Name { get; private set; } = null;
public Type ReturnType { get; private set; } = null;
public ExportAttribute(string name = null)
public ExportAttribute()
{
}
public ExportAttribute(string name)
{
Name = name;
}
public ExportAttribute(Type returnType)
{
ReturnType = returnType;
}
public ExportAttribute(string name, Type returnType)
{
Name = name;
ReturnType = returnType;
}
}