4
讓我們下面的例子:如何跳過在步進(F11)方法
public static class Extensions
{
public static string MakeString(this object obj)
{
if (obj == null) return string.Empty;
return obj.ToString();
}
}
public class ABC
{
public void Method()
{
object obj = default(object);
//Implemention goes here..
// Here every time in step into navigate to MakeString() Method.
if(IsValid(obj.MakeString()))
{
//Operations..
}
}
private bool IsValid(string str)
{
//Check if string is valid or not..
return true;
}
}
在這個例子中Extentions
具有extention方法和使用AM它在ABC
類和當步驟-成條件與此類擴展和其他方法調用,然後每次我步入MakeString()
方法,我們可以跳過它嗎?通過使用method attribute
?或通過其他方式?
可能重複的[我可以標記爲不是我的代碼,所以調試程序步驟了嗎?](http://stackoverflow.com/questions/4951159/can-i-mark-a-class-as-not -My碼那麼該調試器步驟-過它) – Alberto