How can I use generic methods in wcf service?
I wrote this code:
[OperationContract]
void AddItem<T>(T item);
But I receive the following Error:
Type 'T' cannot be exported as a schema type because it is an open generic type. You can only export a generic type if all its generic parameter types are actual types.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…