I would ask what is more efficient for CPU?
void EventKeyF(){
TrueFalse(ref mainMenub);
}
void TrueFalse (ref bool Booling){
if (Booling){
Bool = false;
}
else {
Bool = true;
}
}
OR:
void EventKeyF(){
mainMenub = TrueFalse(mainMenub);
}
bool TrueFalse (bool Booling){
if (Booling){
Return = false;
}
else {
Return = true;
}
}
well since I know how to operate with ref I love them