Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryObject.cs =================================================================== diff -u -r4000 -r4052 --- DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryObject.cs (.../GeometryObject.cs) (revision 4000) +++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryObject.cs (.../GeometryObject.cs) (revision 4052) @@ -22,65 +22,64 @@ using System; using Deltares.DamEngine.Data.Standard; -namespace Deltares.DamEngine.Data.Geometry +namespace Deltares.DamEngine.Data.Geometry; + +/// +/// Base class for all Geometry objects +/// +[Serializable] +public abstract class GeometryObject : IGeometryObject, IName { + private string name = ""; + + #region IGeometryObject Members + /// - /// Base class for all Geometry objects + /// Gets or sets the name. /// - [Serializable] - public abstract class GeometryObject : IGeometryObject, IName + /// + /// The name. + /// + public virtual string Name { - private string name = ""; - - #region IGeometryObject Members - - /// - /// Gets or sets the name. - /// - /// - /// The name. - /// - public virtual string Name + get { - get - { - return name; - } - set - { - name = value; - } + return name; } - - #endregion - - /// - /// Sets the name. - /// - /// The new name. - public virtual void SetName(string newName) + set { - name = newName; // TODO: Name is virtual. Is this really expected behavior? + name = value; } + } - /// - /// Gets the geometry bounds. - /// - /// - public virtual GeometryBounds GetGeometryBounds() - { - return null; - } + #endregion - /// - /// Returns a that represents this instance. - /// - /// - /// A that represents this instance. - /// - public override string ToString() - { - return Name; - } + /// + /// Sets the name. + /// + /// The new name. + public virtual void SetName(string newName) + { + name = newName; // TODO: Name is virtual. Is this really expected behavior? } + + /// + /// Gets the geometry bounds. + /// + /// + public virtual GeometryBounds GetGeometryBounds() + { + return null; + } + + /// + /// Returns a that represents this instance. + /// + /// + /// A that represents this instance. + /// + public override string ToString() + { + return Name; + } } \ No newline at end of file