We konden deze vermelding niet vinden. Er worden benaderende resultaten weergegeven. Controleer je spelling of stel voor deze term aan het woordenboek toe te voegen.
However, trying to call it from the Program class is forbidden.
Cu toate acestea, încercarea de a o apela din clasa Program este interzisă.
The first odd thing you should notice is the fact that my delegate is outside the Program class.
Primul lucru ciudat pe care ar trebui să-l observați este faptul că delegatul meu se află în afara clasei Program.
The compiler could have done this directly inside the Program class, to unwrap the lambdas
Compilatorul ar fi putut face acest lucru, direct în cadrul clasei Program, pentru a desfășura expresiile lambda
By doing so, that property can be accessed not only inside the class where we declared it (the Oven class), but from other classes too, like we read its value from the method Main(), inside the Program class.
Procedând astfel, acea proprietate poate fi accesată nu numai în interiorul clasei în care am declarat-o (clasa Cuptor), ci și din alte clase, cum de exemplu i-am citit valoarea din interiorul metodei Main(), aflată în clasa Program.
On the other side, method TurnOn(), being declared public is accessible to both the class where it was declared, and to the Program class.
Pe de altă parte, metoda Porneste, fiind declarată publică, este accesibilă atât clasei unde a fost declarată, cât și clasei Program. Prin urmare.
This happens because we renamed the namespace in which MyClass is declared, and when we try to instantiate it inside the Program class declared inside the MyProject namespace, the compiler sees that there is no class named MyClass declared inside a namespace called MyProject.
namespace ProiectulMeu {Acest lucru se întâmplă deoarece am redenumit namespace-ul în care este declarată ClasaMea, iar când încercăm să o instanțiem în clasa Program declarată în namespace-ul ProiectulMeu, compilatorul vede că nu există o clasă numită ClasaMea declarată în interiorul unui namespace numit ProiectulMeu.
Then, inside the Program class, we instantiate the Oven class, and we try to access its TurnOn and TurnOff methods.
Apoi, în cadrul clasei Program, instanțiem clasa Cuptor și încercăm să accesăm metodele Porneste și Opreste.
Potentieel gevoelige of ongepaste informatie
Er worden alleen voorbeelden gegeven om u te helpen het woord of de woordcombinatie waarop u hebt gezocht, te vertalen. Deze worden niet door ons geselecteerd of gevalideerd en kunnen ongepaste taal bevatten. Wij vragen u melding te maken van voorbeelden die dienen te worden aangepast of verwijderd. Vertalingen met grof of informeel taalgebruik worden meestal rood of oranje gemarkeerd.