This is so funny for me, obviously, the developer should have used the keyword, but I cannot believe that it even works:
public BusinessResponse<MyResultType> MyMethod(){
BusinessResponse<MyResultType> res = new BusinessResponse<MyResultType>();
ProcessResult(res);
return res;
}
private void ProcessResult(BusinessResponse<MyResultType> result)
{
result.State = BusinessResponseState.Success;
}
My colleague said that this is called a "deep link", I cannot believe that this works in C #. I would reorganize using outaka private void ProcessResult(out BusinessResponse<MyResultType> result), but I still would like to know why this code works.
UPDATE
, , , . , - #, , , processResult, , , , .