Guest User

Untitled

a guest
Sep 14th, 2018
75
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data