This rule will fire if a value type (struct in C#) is larger than a maximum value
(16 bytes by default). This is a problem because, unlike reference types, value
types are bitwise-copied whenever they are assigned to a variable or passed to
a method. If the type
cannot be reduced in size then it should be
turned into a reference type (class in C#).
See Also:
AvoidLargeStructureRule Members
Syntax
Remarks
Example
Example
Requirements
Namespace: Gendarme.Rules.Performance
Assembly: Gendarme.Rules.Performance (in Gendarme.Rules.Performance.dll)
Assembly Versions: 2.8.0.0