mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-04-04 12:28:21 +00:00
Layout
This commit is contained in:
38
Libraries/Esiur/Resource/ExportAttribute.cs
Normal file
38
Libraries/Esiur/Resource/ExportAttribute.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace Esiur.Resource;
|
||||
|
||||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Method | AttributeTargets.Event | AttributeTargets.Class | AttributeTargets.Enum)]
|
||||
|
||||
public class ExportAttribute : Attribute
|
||||
{
|
||||
public string Name { get; private set; } = null;
|
||||
public PropertyPermission? Permission { get; private set; }
|
||||
|
||||
public ExportAttribute()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public ExportAttribute(string name)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
|
||||
public ExportAttribute(PropertyPermission permission)
|
||||
{
|
||||
Permission = permission;
|
||||
}
|
||||
|
||||
public ExportAttribute(string name, PropertyPermission permission)
|
||||
{
|
||||
Name = name;
|
||||
Permission = permission;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user