ProjectReader.ToBool C# (CSharp) Method

ToBool() public static method

public static ToBool ( XAttribute attribute ) : bool?
attribute XAttribute
return bool?
    public static bool? ToBool(XAttribute attribute)
    {
        if (attribute == null)
        {
            return null;
        }
        return bool.Parse(attribute.Value);
    }