I am inexperience with c# and I would like to ask if there is any way to access non-static fields without creating an object?
I am unit testing a program(so I can't change the way the class is written) and my aim is to get the initialised values of the fields. The problem here is that the constructor changes some of the field values.
I would highly appreciate any suggestions.
constructor changes some fieldsquestion: it's how programming works. If a programmer has decided to make this class work this way, then you need to work with it. If it seems inapropriate or untestable, you need to tell it to your developer (or yourself?) :)