S
S
stcmd042362016-06-17 16:28:05
JSON
stcmd04236, 2016-06-17 16:28:05

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

1 answer(s)
S
stcmd04236, 2016-06-20
@stcmd04236

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 question

Ask a Question

731 491 924 answers to any question