asp.net mvc - I want to copy the value of List<CustomType> and paste them in my console apps in C# -


i working in c# code asp.net mvc app. coding in project , when test call models data in console app.

now have reference of models in console app. can copy value stacktrack ,watch & immediate windows (any of all)

what want want test through console app. have add reference. thing if can copy value @ debug time in mvc app , paste them in console. awesome.

do have idea how in c# using express visual web developer.

i have asp.net mvc app. want copy value of list , paste them in console app. feel can debug better.

for doing have add model dll in console app. can gave me code can paste in console app. when debug mvc app way can copy text or list of customobject.

i want paste these field testing in console app. know how can solve this.

it seems want have...

  1. a running webapp

  2. a running console application start , can use fetch objects web application print them in console application debugging

this wrong. this, necessary include complicated stuff serialize stuff, sending them on socket , such. don't want that. should is:

  • the best thing if figured out how use visual studio debugger. online tutorials. can stop webapp during runtime , inspect variables (including lists of strings , contents) hovering on source code.
  • if don't understand or don't want use debugger, sounds you're best off using foreach loop , console.writeline method in code want debug. this:

    foreach (var str in listofstrings) {     console.writeline(str); } 

    you can in visual studio open output view, console output shown.


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -