mardi 21 juillet 2020

c# Is there a faster way of saying: if bool, bool = true?

looking this up doesn't yield many answers so ill ask here,

Is there a better way of writing this:

bool example1;
bool example2;

If(example1)
{
   example2 = true;
}

that is not:

example2 = example1;

thanks

Aucun commentaire:

Enregistrer un commentaire