Best Represention of strongly-typed types in contract

Mar 19, 2009 at 10:16 AM
Edited Mar 19, 2009 at 11:04 AM
I'm using the pipeline for a solution and need to repreent a number of strongly-typed objects as paramters accross the boundary in contracts, etc. For example:


interface IUploader : System.AddIn.Contract.IContract


void UploadFilesToServer(String server);
 void UploadDataToSqlServer(String server, String database, MyType myDataType);










Is there a best practise to approach this (e.g. generics), e.g. do I have to create a copy of MyType on both sides of the boundary?  Many of the parmaters and types used in samples are primitive types such as double, etc.