mirror of
https://gitee.com/csharpui/CPF.git
synced 2025-04-05 17:37:51 +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;
|
|
}
|
|
}
|
|
}
|