Skip to content

Commit

Permalink
Add default value to core properties
Browse files Browse the repository at this point in the history
  • Loading branch information
adecler committed Dec 12, 2024
1 parent da54a1c commit e2650f2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
8 changes: 4 additions & 4 deletions XML_oM/Bluebeam/BluebeamObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ public class BluebeamObject : IBHoMObject
[XmlIgnore]
public virtual Guid BHoM_Guid { get; set; } = Guid.NewGuid();
[XmlIgnore]
public virtual Dictionary<string, object> CustomData { get; set; }
public virtual Dictionary<string, object> CustomData { get; set; } = new Dictionary<string, object>();
[XmlIgnore]
public virtual string Name { get; set; }
public virtual string Name { get; set; } = "";
[XmlIgnore]
public virtual FragmentSet Fragments { get; set; }
public virtual FragmentSet Fragments { get; set; } = new FragmentSet();
[XmlIgnore]
public virtual HashSet<string> Tags { get; set; }
public virtual HashSet<string> Tags { get; set; } = new HashSet<string>();
}
}

Expand Down
10 changes: 5 additions & 5 deletions XML_oM/CSProject/CSProjectObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ namespace BH.oM.XML.CSProject
public class CSProjectObject : IBHoMObject
{
[XmlIgnore]
public virtual Guid BHoM_Guid { get; set; }
public virtual Guid BHoM_Guid { get; set; } = Guid.NewGuid();
[XmlIgnore]
public virtual Dictionary<string, object> CustomData { get; set; }
public virtual Dictionary<string, object> CustomData { get; set; } = new Dictionary<string, object>();
[XmlIgnore]
public virtual string Name { get; set; }
public virtual string Name { get; set; } = "";
[XmlIgnore]
public virtual FragmentSet Fragments { get; set; }
public virtual FragmentSet Fragments { get; set; } = new FragmentSet();
[XmlIgnore]
public virtual HashSet<string> Tags { get; set; }
public virtual HashSet<string> Tags { get; set; } = new HashSet<string>();
}
}

Expand Down
11 changes: 6 additions & 5 deletions XML_oM/EnergyPlus/EnergyPlusObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,16 @@ namespace BH.oM.XML.EnergyPlus
public class EnergyPlusObject : IBHoMObject
{
[XmlIgnore]
public virtual Guid BHoM_Guid { get; set; }
public virtual Guid BHoM_Guid { get; set; } = Guid.NewGuid();
[XmlIgnore]
public virtual Dictionary<string, object> CustomData { get; set; }
public virtual Dictionary<string, object> CustomData { get; set; } = new Dictionary<string, object>();
[XmlIgnore]
public virtual string Name { get; set; }
public virtual string Name { get; set; } = "";
[XmlIgnore]
public virtual FragmentSet Fragments { get; set; }
public virtual FragmentSet Fragments { get; set; } = new FragmentSet();
[XmlIgnore]
public virtual HashSet<string> Tags { get; set; }
public virtual HashSet<string> Tags { get; set; } = new HashSet<string>();

}
}

Expand Down

0 comments on commit e2650f2

Please sign in to comment.