tag:blogger.com,1999:blog-1194836729866470946.post1463059629919534056..comments2024-03-23T08:53:17.893-04:00Comments on Pranay Rana: Reference type modification vs change of referencepranay ranahttp://www.blogger.com/profile/01998269478315143789noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-1194836729866470946.post-25636066709725985702016-02-10T00:49:41.906-05:002016-02-10T00:49:41.906-05:00thanks I will fix it...thanks I will fix it...pranay ranahttps://www.blogger.com/profile/01998269478315143789noreply@blogger.comtag:blogger.com,1999:blog-1194836729866470946.post-69501854887542849302016-02-09T12:18:56.618-05:002016-02-09T12:18:56.618-05:00Small fix to below
public void ChangeCustomer1(C...Small fix to below <br /><br />public void ChangeCustomer1(Customer cust)<br />{<br /> cust = new Customer { ID = 1, Name = "abc xyz" };<br /> Console.WriteLine("modified cust name in changecustomer1 : " + cust.Name);<br /> return cust;<br />}<br /><br />You might want to change function's return type.રવિ ભટ્ટhttps://www.blogger.com/profile/07756107665708433262noreply@blogger.com