Fetching contributors…
Cannot retrieve contributors at this time
40 lines (29 sloc) 847 Bytes


TypeName SA1205PartialElementsMustDeclareAccess
CheckId SA1205
Category Ordering Rules


The partial element does not have an access modifier defined.

Rule description

A violation of this rule occurs when the partial elements does not have an access modifier defined.

How to fix violations

To fix an instance of this violation, specify an access modifier for the partial element.

How to suppress violations

[SuppressMessage("StyleCop.CSharp.OrderingRules", "SA1205:PartialElementsMustDeclareAccess", Justification = "Reviewed.")]
#pragma warning disable SA1205 // PartialElementsMustDeclareAccess
#pragma warning restore SA1205 // PartialElementsMustDeclareAccess