常见的有,对枚举的补充说明,如:
public enum Error
{
/// <summary>
/// This error is used for unclassified errors of all kinds.
/// </summary>
[Level(Severity.Critical)]
Unspecified,
/// <summary>
/// This error is used when a null parameter is passed to a method that does not
/// permit null values. This usually occurs due to errors in client-side code.
/// </summary>
[Level(Severity.Error), Message("The parameter {0} was null (not allowed here).")]
NullParameter
}
还有,asp.net服务器控件或winform控件的的属性面板中对控件属性的描述应该熟悉了吧