Hi,
In WCF you cannot substitute a sub class for a base class directly as you can in C#.
You can use an attribute to be able to pass the class to the client. This is done on the Service Interface
KnownType - Allows the class to be passed throughout all contracts and operations using the base class.
This is appliedto the DataContract.
C# : [KnownType(typeof(Customer
))]
ServiceKnownType - Allows the class to be passed only for the operation on which it is defined.
This is applied to the Service Contract.
Personally I use ServiceKnownType
C# : [ServiceKnownType(typeof(C
ustomer))]
VB.NET: <ServiceKnownType(GetType(C
ustomer))> _
Have a look here
http://msdn.microsoft.com/en-us/library/system.servicemodel.serviceknowntypeattribute.aspxHope this helps,
Darren