Initializes a new instance of the Align class.
            
Namespace: SharpAssembler.Core.InstructionsAssembly: SharpAssembler Core (in SharpAssembler Core.dll) Version: 1.0.0.0 (1.0.0.0)
 Syntax
Syntax
| C# | 
|---|
| public Align( int boundary, byte paddingbyte ) | 
| Visual Basic | 
|---|
| Public Sub New ( _ boundary As Integer, _ paddingbyte As Byte _ ) | 
| Visual C++ | 
|---|
| public: Align( int boundary, unsigned char paddingbyte ) | 
Parameters
- boundary
- Type: System..::..Int32
 The boundary to align to. Must be a power of two.
- paddingbyte
- Type: System..::..Byte
 The padding byte value used.
 Exceptions
Exceptions
| Exception | Condition | 
|---|---|
| System..::..ArgumentOutOfRangeException | boundary < 1 | 
| System..::..ArgumentException | !(MathExt.IsPowerOfTwo(boundary)) | 
 Contracts
Contracts
| Requires | ||
|---|---|---|
| boundary >= 1 
 | ||
| MathExt.IsPowerOfTwo(boundary) 
 | 





