mirror of
https://github.com/mgroves/MonodroidStockPortfolio.git
synced 2024-12-26 11:19:24 +00:00
21 lines
No EOL
544 B
C#
21 lines
No EOL
544 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace MonoStockPortfolio.Entities
|
|
{
|
|
public class Portfolio
|
|
{
|
|
public Portfolio() { }
|
|
public Portfolio(long id) { ID = id; }
|
|
|
|
public long? ID { get; private set; }
|
|
public string Name { get; set; }
|
|
|
|
public void GetObjectData(SerializationInfo info, StreamingContext context)
|
|
{
|
|
info.AddValue("ID", this.ID);
|
|
info.AddValue("Name", this.Name);
|
|
}
|
|
}
|
|
} |