⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 25.15.txt

📁 《Microsoft Visual C# .NET 2003开发技巧大全》源代码
💻 TXT
字号:
Listing 25.15 Using an Attribute That Has a One-Parameter Constructor and an
Optional Property
// this class supplies a MaxValue of 100 with the attribute
[FieldAttribute(“Sales”, MaxValue = 100)]
class PercentSuccessfulSales
{
// implementation here
}
// this class is also decorated with the attribute,
// but does not specify a value for MaxValue.
// MaxValue in this attribute will retain its default value of zero
[FieldAttribute(“SalespersonVisits”)]
class NumberOfVisits
{
// implementation here
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -