0
正如问题所述;是否可以抑制出现在课堂上的所有指定的热身?我一直在尝试了线沿线的属性:SuppressMessageAttribute;抑制一个班级内的所有警告
namespace Testing2k.Collections
{
/// <summary>
/// Represents a collection that utilizes an array internally to store it's content.
/// </summary>
/// <typeparam name="T"> The type of elements contained in the collection. </typeparam>
[SuppressMessage("Microsoft.Performance", "CA1800", Justification = "Choosing readability over a trivial optimalization.", Target = "Testing2k.Collections.ArrayBasedCollection<T>")]
public abstract class ArrayBasedCollection<T> : ArrayBasedStructure<T>, ICollection<T>, IEnumerable<T>
{
// ...
}
}
他们似乎都不做任何事情,所以我不知道该怎么做了正确的事情是这样的,如果它甚至有可能。