c# 如何找到项目中图片的相对路径
string path = System.Environment.CurrentDirectory;//非Web程序
if (System.Environment.CurrentDirectory != AppDomain.CurrentDomain.BaseDirectory)
{
path = AppDomain.CurrentDomain.BaseDirectory;//asp.net 程序
path += "Image\\DefaultImage.gif";
}