void f(StringBuilder builder) { builder = null; } --------------main------------ StringBuilder b = new StringBuilder("hello"); f(b); print b;
以上是c#伪代码,谢谢。
hello呀