随笔:30 文章:9 评论:14 引用:0
博客园 首页 发新随笔
发新文章 联系 订阅订阅管理

最新评论

Re:Asp.net MVC + JQuery调用Ajax(2) 桀骜的灵魂 2011-05-29 17:37  
感谢分享
Re:vs小工具之ILDASM 火地晋 2010-09-16 00:05  
用reflecor不是更好?
唉 5楼说的没错
7楼也是对的呀
LS正解
错误百出,连五楼被誉为“还是五楼的写的明白”也犯理解性的致命错误:
既然定义了“out string path”,就不要再需要“return path; ”,方法
定义成无返回型就可以了:
如:
public static void outTest(string p,out string path)
{
Console.WriteLine(p);
path="test";
}

但他的调用方法是对的。
什么呀都是,还是五楼的写的明白.
re: C#中引用型参数ref和输出参数out的区别 应该这样吧! 2007-10-29 08:30  
using System;
using System.Collections.Generic;
using System.Text;

namespace test
{
class Program
{
public static string outTest(string p,out string path)
{
Console.WriteLine(p);
path="test";
return path;
}

static void Main(string[] args)
{
string strPath;
string strp="123";
outTest(strp, out strPath);
Console.WriteLine(strPath);
Console.ReadKey();
}
}
}
public string outTest(string p, out string path)
{
Response.Write(p);
path="test";
return path;
}
这样的吧 ........
靠 错误百出 放在这丢人呐!
re: C#中引用型参数ref和输出参数out的区别 helloworld123445 2006-03-02 14:11  
明白个毛,一堆错误
不对,ref传递的是指针的地址,不是实际值的内存地址
re: index server jacky 2005-01-13 17:44  
good ,this is what i needed!!! thank you ! DAXIA
re: index server kerry 2005-01-13 17:42  
好啊,经典收藏了

公告


Powered By: 博客园
模板提供沪江博客