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
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
| Type | Name | Description |
|---|---|---|
| System.Int32 | min | minimum possible int value |
| System.Int32 | max | minimum possible max value |