Skip to main content

Class BitCountFromRangeAttribute

Calculates bitcount from then given min/max values and then packs using Can be used on an enum type, so all fields and parameters using that enum are packed. Attribute on field or parameter will override the enum's attribute Also See: Bit Packing Documentation

Inheritance​
System.Object
System.Attribute
Inherited Members​
Show
Syntax​
[AttributeUsage(AttributeTargets.Enum | AttributeTargets.Field | AttributeTargets.Parameter)]
public class BitCountFromRangeAttribute : Attribute, _Attribute

Constructors​

BitCountFromRangeAttribute(Int32, Int32)​

Declaration​
public BitCountFromRangeAttribute(int min, int max)
Parameters​
TypeNameDescription
System.Int32minminimum possible int value
System.Int32maxminimum possible max value