CPF/CPF.Mac/Mac/Foundation/FieldAttribute.cs
2023-11-21 23:05:03 +08:00

32 lines
454 B
C#

using System;
namespace CPF.Mac.Foundation
{
[AttributeUsage(AttributeTargets.Property)]
public class FieldAttribute : Attribute
{
public string SymbolName
{
get;
set;
}
public string LibraryName
{
get;
set;
}
public FieldAttribute(string symbolName)
{
SymbolName = symbolName;
}
public FieldAttribute(string symbolName, string libraryName)
{
SymbolName = symbolName;
LibraryName = libraryName;
}
}
}