Can I check? Do you pass the delegate to the web service? This will not work ... it cannot be serialized. In the best case, ADO.NET Data Services (.NET 3.5SP1) can do something similar by translating Expressioninto a query string ... but it will be as close as possible. In addition, you will have to create a request object that encapsulates your intentions using the usual properties.
This applies to any web service, wcf service, tcp, etc.
* = - , , ( ()); , , xml
()
- , -; , ( ). :
[DataContract]
class Foo : IWhateverInterfaces {
[DataMember]
public string Bar {get;set;}
[DataMember]
public int Baz {get;set;}
public float NotPartOfTheContract {get;set;}
public event EventHandler AlsoNotPartOfTheContract;
}
[DataContract] , [DataMember], , . WCF- , MS ... IMO, , ...