Answer the question
In order to leave comments, you need to log in
How to return dynamic type in WCF in JSON format?
Good afternoon! How can you return dynamic types in WCF? For example this
var result = new Result<dynamic> () { OK = true, Data = "it is dynamic", Code = 200} ;
Answer the question
In order to leave comments, you need to log in
I’ll answer my own question myself))) and the dynamic type can also be returned like others, and my mistake was an attempt to return anonymous types through dynamic)).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question