C# 豆知識

这篇文章是我在项目中积累注意到的各种小知识的整理。因为知识点太小,不好单独作为一篇文章,所以就统合放在一起。!

 

①根据format自动赋参。

string url = "http://www.sample.com?id={0}&name={1}&sex={2}";



string exceptUrl = string.format(url,"1001","linh","male");

得到的值是:

"http://www.sample.com?id=1001&name=linh&sex=male"

 

 ②SqlServer中查看一个函数被哪些函数或存储过程调用

select * from sys.all_sql_modules where definition like '%[NAME]%'

  

 

你可能感兴趣的:(C#)