我正在尝试做以下事情:GetString( inputString, ref Client.WorkPhone)private void GetString(string inValue, ref string outValue){ if (!string.IsNullOrEmpty(inValue)) { outValue = inValue; }}这给了我一个编译错误。我认为我很清楚我想要实现的目标。基本上我想GetString将输入字符串的内容复制到WorkPhone属性Client。是否可以通过引用传递属性?
3 回答
- 3 回答
- 0 关注
- 468 浏览
添加回答
举报
0/150
提交
取消