mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-04-05 06:15:24 +00:00
Initial commit
This commit is contained in:
parent
17ad36d6ad
commit
3d241b2154
44 changed files with 1619 additions and 0 deletions
11
vscode/Chapter09/Ch09Ex02SerializingShapes/Shape.cs
Normal file
11
vscode/Chapter09/Ch09Ex02SerializingShapes/Shape.cs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
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; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue