ciao , ho integrato una classe c3dvector in c# e compilando becco quest errore:
Error 104 The 'this' object cannot be used before all of its fields are assigned to C:\tmp\Canny Edge Detection C#\Iris Recognition\Vector3.cs 65
ho visto sulal documentazione:
documentazione errore 104
ma non riesco a capire , per es questo è un costruttore che va in errore:
posso cambiare il tipo di framework usato ? 2.0 o 3.0 o 4.0?codice:public Vector3(double x, double y, double z) { // Pre-initialisation initialisation // Implemented because a struct's variables always have to be set in the constructor before moving control this.x = 0; this.y = 0; this.z = 0; // Initialisation X = x;//errore in intellisense Y = y; Z = z; }
da cosa è dato e come posso risolvere?
grazie.
ps. ho trovato la classe su codeproject qui

Rispondi quotando