Sushant Torankar

Sushant Torankar

  • 1.4k
  • 220
  • 22.4k

About getting property from Object

Feb 3 2023 3:12 PM

hello,

I am getting response output from Postman as -

{

Result : 

{

Id : 1,

Name : Ramesh,

Designation : Manager

}

}

So in my mvc web api project, I'm getting Result , but i want separate property of it, something like :

HCOutput output = New HCOutput();

var aa = output.Result.Name;

output.Result.Id;

so how it can be done? is it serialization ?


Answers (4)