c# - Sending a Tuple object over WCF? -
is system.tuple
class supported wcf's data contract serializer (i.e., can pass tuple
objects wcf calls and/or receive them part or of result)?
i found this page, not clear, definitive "you can send , receive tuples wcf" answer hoping for.
i'm guessing can, long of types within tuple
supported data contract serializer -- can provide me more definitive answer? thanks.
the tuple
types marked serializableattribute
, therefore, if types store within serializable, should able serialized wcf well.
check out: links of tuple'1, tuple'2, etc. says:
[serializableattribute] public class tuple<t1> : istructuralequatable, istructuralcomparable, icomparable, ituple
note document linked contains following line:
the [serializable] / iserializable programming model not supported in partial trust environment.
so, may not easy seem.
(btw, tuple static class worth checking out.)
Comments
Post a Comment