Guest User

Untitled

a guest
Sep 14th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. public void CallerMethod()
  2. {
  3. var dataRequest = new DataRequestDTO();
  4. var someText = ReturnText(dataRequest);
  5. AnotherMethod(dataRequest);
  6. }
  7.  
  8.  
  9.  
  10. public string ReturnText(DataRequestDTO dataRequest)
  11. {
  12. dataRequest.DetailsText = "Changing the object"; // I would think that this change souldn't be happening here,
  13. //or is this not an issue?
  14. return "Some text";
  15. }
Add Comment
Please, Sign In to add comment