Gast
#702353
Mahlzeit !
Kurze Frage. Ich nutze auch seit kurzen C# und habe mit der Umstellung
zu C noch etwas zu kämpfen.
public partial class data
{ public byte anzahl; }
public partial class boot
{ data test = new data();
byte value = 0;
value = test.anzahl + 0x04;
}
Warum kann ich zu test.anzahl keine 0x04 dazu zählen ?
Ich bekomme eine Fehlermeldung :
Cannot implicitly convert type 'int' to 'byte'. An explicit conversion
exists (are you missing a cast?)
Lesen kann ich auch - aber ich suche eine einfache Lösung für mein
Problem!!
Gruss