On Tuesday, 6 October 2015 at 14:28:42 UTC, Kagamin wrote:
On Monday, 5 October 2015 at 16:40:06 UTC, Jan Johansson wrote:
Yes, I know WCF more than well, doing my own bindings,
federated security bindings, you name it. I also know that WCF
works with attribute values during runtime, through
reflections and extract aspect oriented instructions on how to
treat types. It would be slick to do the same in D.
Yes, but that's only because C# doesn't support DbI, it also
doesn't mean WCF accepts arbitrary types in contracts:
http://stackoverflow.com/questions/7444851/why-knowntypeattribute-need-in-wcf
I know about that too, the KnownType is applied to types that the
DataContractSerializer (not the XmlSerializer) must be aware of
before it can serialize the type (you enlist the type to the
serializer). Thanks.