class1.cs
来自「C#开发教程 由浅入深 配有实例 是初学者的好帮手」· CS 代码 · 共 28 行
CS
28 行
using System;
using System.Reflection;
namespace MultipleUse
{
[AttributeUsage(AttributeTargets.All, AllowMultiple=true)]
public class SomethingAttribute : Attribute
{
public SomethingAttribute(String str)
{
}
}
[Something("abc")]
[Something("def")]
class MyClass
{
}
class Test
{
[STAThread]
static void Main(string[] args)
{
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?