Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void CallerMethod()
- {
- var dataRequest = new DataRequestDTO();
- var someText = ReturnText(dataRequest);
- AnotherMethod(dataRequest);
- }
- public string ReturnText(DataRequestDTO dataRequest)
- {
- dataRequest.DetailsText = "Changing the object"; // I would think that this change souldn't be happening here,
- //or is this not an issue?
- return "Some text";
- }
Add Comment
Please, Sign In to add comment