25.16.txt
来自「《Microsoft Visual C# .NET 2003开发技巧大全》源代码」· 文本 代码 · 共 9 行
TXT
9 行
Listing 25.16 Displaying the Attributes Applied to a Class
Type type = typeof(MyClass);
Console.WriteLine(“Attributes defined for MyClass are:”);
object [] attribs = type.GetCustomAttributes(true);
foreach (object attrib in attribs)
{
Console.WriteLine(attrib.ToString());
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?