I have created the mysec variables for BitVector64. For the version less than 8 I would like to generate the value using the BitVector32
static BitVector64.Section mySect1;
static BitVector64.Section mySect2;
static BitVector64.Section mySect3;
if (versions) > 7)
mySect2 = BitVector64.CreateSection(14, mySect1); // V1 - 3 bits
else
mySect3 = BitVector32.CreateSection(7, mySect2);
What I need now
- Mysect2 having value in BitVector64.Section. I need to convert explictity to BitVector32.Section and pass the aruguments.
Below converstion is not working for me
mySect3 = BitVector32.CreateSection(7, (BitVector32.Section) mySect2);
- Will get the values in BItVector32.Section for mysect3 need to convert to the BitVector64.Section
Below converstion is not working for me
mySect3 = BitVector32.CreateSection(7, (BitVector32.Section) mySect2) as BitVector34.Section;
or
mySect3 = (BitVector64.Section) BitVector32.CreateSection(7, (BitVector32.Section) mySect2) ;