📄 25.16.txt
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -