mirror of
https://gitee.com/csharpui/CPF.git
synced 2025-07-15 14:04:34 +08:00
32 lines
454 B
C#
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;
|
||
|
}
|
||
|
}
|
||
|
}
|