I want to create a custom field in dot.net core which will have a bool as well as an integer or string value, something like the following:
Public MyCustomField field;
field.BoolValue = true or false;
field.NumberValue = 101;
Is this possible?
I want to create a custom field in dot.net core which will have a bool as well as an integer or string value, something like the following:
Public MyCustomField field;
field.BoolValue = true or false;
field.NumberValue = 101;
Is this possible?
 
    
    Yes, it is.
void Main()
{
    field.BoolValue = true;
    field.NumberValue = 101;
}
public MyCustomField field;
public struct MyCustomField // or `class`
{
    public bool BoolValue;
    public int NumberValue;
}
