本帖最后由 付炯 于 2011-11-20 14:39 编辑
今天看到这样一个函数,于是启动反编译器看到了如下的代码:- public StringBuilder AppendFormat(IFormatProvider provider, string format, params object[] args)
- {
- if ((format == null) || (args == null))
- {
- throw new ArgumentNullException((format == null) ? "format" : "args");
- }
- int num = 0;
- int length = format.Length;
- char ch = '\0';
- ICustomFormatter formatter = null;
- if (provider != null)
- {
- formatter = (ICustomFormatter) provider.GetFormat(typeof(ICustomFormatter));
- }
- Label_0096:
- 此处省略多行代码
- Label_0250:
- 此处省略多行代码
- goto Label_0096;
- }
复制代码 请问上面的label_0096:和label_0250:是一种什么用法?程序运行时如何识别? |