cs11dotnet7/vscode/Chapter09/Ch09Ex02SerializingShapes/Shape.cs

12 lines
231 B
C#
Raw Normal View History

2022-03-04 09:34:29 +01:00
using System.Xml.Serialization;
namespace Packt.Shared;
[XmlInclude(typeof(Circle))]
[XmlInclude(typeof(Rectangle))]
public abstract class Shape
{
public string? Colour { get; set; }
public abstract double Area { get; }
}