c#中的[和]是什么?它是干什么用的?这是什么意思?
例
[DefaultValue(null)]
[JsonName("name")]
public string Name
{
get
{
if (this.name == null)
{
return String.Empty;
}
return this.name;
}
}
Run Code Online (Sandbox Code Playgroud)