MonodroidStockPortfolio/MonoStockPortfolio.Entities/Portfolio.cs

21 lines
544 B
C#
Raw Normal View History

2010-11-02 16:26:36 +00:00
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace MonoStockPortfolio.Entities
{
public class Portfolio
{
public Portfolio() { }
public Portfolio(long id) { ID = id; }
2010-11-02 16:26:36 +00:00
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);
}
}
}