daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Sep 14th, 2018 60 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top