Bonjour,
Est-il possible de créer un objet qui hérite du type "DataRaw", afin de rajouter des méthodes ?
La partie commentée (constructeur de l'objet "cutumisé") pose problème.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 public class DataRow_custom : System.Data.DataRow { //public DataRow_custom()//System.Data.DataRowBuilder monDataRowBuilder //{ // this = new System.Data.DataRow(monDataRowBuilder); //} public ulong Extrait_Signal(int iPos, int iLong, bool bTrueMotor_FalseIntel) { ulong ulRetour; ulRetour = 0x00UL; ulRetour = (ulong)(this.Field<byte>(12)); return ulRetour; } }
Merci
Partager