Treefrog.Framework.Model.BoolProperty.ToString C# (CSharp) Method

ToString() public method

Returns the property's value as a String.
public ToString ( ) : string
return string
        public override string ToString()
        {
            return _value ? "true" : "false";
        }

Usage Example

Example #1
0
 public void BoolToString()
 {
     Property prop = new BoolProperty("test", true);
     Assert.AreEqual("true", prop.ToString());
 }