Skip to content

Add default value to core properties #612

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

Merged
merged 1 commit into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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