Exemple #1
0
        public void Read(NDRParser parser)
        {
            parser.BeginStructure();
            Level = parser.ReadUInt32();
            switch (Level)
            {
            case 100:
                WorkstationInfo100 info100 = null;
                parser.ReadEmbeddedStructureFullPointer <WorkstationInfo100>(ref info100);
                Info = info100;
                break;

            case 101:
                WorkstationInfo101 info101 = null;
                parser.ReadEmbeddedStructureFullPointer <WorkstationInfo101>(ref info101);
                Info = info101;
                break;

            default:
                throw new NotImplementedException();
            }
            parser.EndStructure();
        }
Exemple #2
0
 public WorkstationInfo(WorkstationInfoLevel info)
 {
     Level = info.Level;
     Info  = info;
 }