コード例 #1
0
        private void ParseRows()
        {

            int RowCount = Integer();
            Rows = new List<Row>(RowCount);
            for (int i = 0; i < RowCount; i++)
            {
                Row row = new Row();
                int count = Integer();
                row.Objects = new List<object>(count);
                for (int j = 0; j < count; j++)
                {
                    object obj = Object();
                    row.Objects.Add(obj);
                }
                Rows.Add(row);
            }
        }
コード例 #2
0
ファイル: User.cs プロジェクト: puckipedia/MagisterAPI
 public static LeerlingData Get(BinairFormaat Formaat, Row Row)
 {
     LeerlingData D = new LeerlingData();
     for (var i = 0; i < Row.Objects.Count; i++)
     {
         string Param = Formaat.Fields[i].Name;
         switch (Param)
         {
             case "idleer":
                 D.idleer = (int)Row.Objects[i];
                 break;
             case "stamnr":
                 D.stamnr = (int)Row.Objects[i];
                 break;
             case "achternaam":
                 D.achternaam = (string)Row.Objects[i];
                 break;
             case "roepnaam":
                 D.roepnaam = (string)Row.Objects[i];
                 break;
             case "naam_vol":
                 D.naam_vol = (object)Row.Objects[i];
                 break;
             case "tussenvoeg":
                 D.tussenvoeg = (string)Row.Objects[i];
                 break;
             case "woonplaats":
                 D.woonplaats = (string)Row.Objects[i];
                 break;
             case "straat":
                 D.straat = (string)Row.Objects[i];
                 break;
             case "huisnr":
                 D.huisnr = (string)Row.Objects[i];
                 break;
             case "huisnr_tv":
                 D.huisnr_tv = (object)Row.Objects[i];
                 break;
             case "postcode":
                 D.postcode = (string)Row.Objects[i];
                 break;
             case "medisch":
                 D.medisch = (object)Row.Objects[i];
                 break;
             case "memo":
                 D.memo = (object)Row.Objects[i];
                 break;
             case "geb_datum":
                 D.geb_datum = (DateTime)Row.Objects[i];
                 break;
             case "idGebr":
                 D.idGebr = (int)Row.Objects[i];
                 break;
             case "idAanm":
                 D.idAanm = (int)Row.Objects[i];
                 break;
             case "idStud":
                 D.idStud = (int)Row.Objects[i];
                 break;
             case "C_PROFIEL":
                 D.C_PROFIEL = (object)Row.Objects[i];
                 break;
             case "C_PROFIEL2":
                 D.C_PROFIEL2 = (object)Row.Objects[i];
                 break;
             case "idBgrp":
                 D.idBgrp = (int)Row.Objects[i];
                 break;
             case "STUDIE":
                 D.STUDIE = (string)Row.Objects[i];
                 break;
             case "dBegin":
                 D.dBegin = (DateTime)Row.Objects[i];
                 break;
             case "dEinde":
                 D.dEinde = (DateTime)Row.Objects[i];
                 break;
             case "studieslu":
                 D.studieslu = (int)Row.Objects[i];
                 break;
             case "groep":
                 D.groep = (string)Row.Objects[i];
                 break;
         }
     }
     return D;
 }