Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero length string now handled for the Depth property #555

Merged
merged 10 commits into from
Nov 24, 2022
19 changes: 17 additions & 2 deletions XML_oM/Bluebeam/Markup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,23 @@ public class Markup : BluebeamObject
public virtual string Label { get; set; }

[XmlElement("Depth")]
public virtual double Depth { get; set; }

public string XMLDepth;

public virtual double? Depth
{
get
{
try
{
return Convert.ToDouble(XMLDepth);
}
catch
{
return null;
}
}
}

[XmlElement("Layer")]
public virtual string Layer { get; set; }
}
Expand Down