Is it possible to somehow use this class(test.Value is not what i'm looking for):
RefBool test = false;
if (test)
{
}
This is class body:
public class RefBool
{
public bool Value { get; set; }
public RefBool(bool value)
{
this.Value = value;
}
public static implicit operator RefBool(bool val)
{
return new RefBool(val);
}
}