C# class property with "two types"
Advertisements I there any way in c# to create a property which will be basically a bool but can be set via string? What I want to achive is simple: string stringValue = "true"; object.BoolValue = stringValue ; bool boolValue = object.BoolValue; My idea was using get; set; but it always crashes on conversion. I… Read More C# class property with "two types"