-1
了StyleCop警告SA1201我已經修改下課後如下了StyleCop發出SA1201:項目在Order類
/// <summary>
/// Class Data
/// </summary>
public class DataClass
{
/// <summary>
/// Gets or sets Id
/// </summary>
public string Id
{
get { return this.id; }
set { this.id = value; }
}
/// <summary>
/// Gets or sets Name
/// </summary>
public string Name
{
get { return this.name; }
set { this.name = value; }
}
/// <summary>
/// Declare variable name
/// </summary>
private string name;
/// <summary>
/// Declare variable id
/// </summary>
private string id;
}
還是一樣的錯誤顯示 「所有屬性必須放在所有字段後」
你明白了倒退。 'id'和'name'前的'id'和'name'。 – juharr