Click here to Skip to main content
15,891,372 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
while (inner.MoveToNextAttribute())
 {
int caseSwitch=1; 
    switch (caseSwitch)
      {
 case 1:
  if (inner.Name == "Identifier")
                                                                                                {
                                                                                                    dto.gettingField(inner.Value);
                                                                                                }
                                                                                                goto case 2;
                                                                                            case 2:

                                                                                                if (inner.Name == "ByteOffset")
                                                                                                {
                                                                                                    dto.gettingByteoffset(inner.Value);
                                                                                                }
                                                                                                goto case 3;
                                                                                            case 3:
                                                                                                if (inner.Name == "BitOffset")
                                                                                                {
                                                                                                   dto.gettingBitoffset(inner.Value);
                                                                                                }
                                                                                               }                                                                                            } 


............................................
public List<field> Field = new List<field>();
C#
public string gettingValues(string structurefield_identifier)
{
        Field si = new Field();
        si.StructureField_Identifier = structurefield_identifier;
        si.byteoffset=structureFieldIdentifier;
        si.bitoffset=structureFieldIdentifier;
        Field.Add(si);
    
        return structurefield_identifier;
}


I need to send the "Identifier" value to si.StructureField_Identifier, Then I need to the value of "Byteoffset" to si. byteoffset. I am not able to get it... Anybody knows help me.
Posted
Updated 21-Jan-14 23:29pm
v5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900