10
WCF的新功能。WCF DataContract與DataContract接口
DataContact類可以從Interface繼承嗎?
如:
[DataContract(Namespace = ...........)]
public class VesselSequence : IVesselSequence
{
[DataMember]
public int AllocationId { get; set; }
[DataMember]
public string ScenarioName { get; set; }
}
interface VesselSequence : IVesselSequence
{
public int AllocationId { get; set; }
public string ScenarioName { get; set; }
}
馬丁您好..有沒有什麼好的例子在網絡的某個地方? – Sreedhar 2009-07-07 07:00:20