立即窗口需要对象引用?

时间:2015-04-15 13:59:16

标签: visual-studio-2012

我尝试使用以下方法使用即时窗口调用类中的公共函数:

?LeadFunctions.Duplicate(2)
Reference to a non-shared member requires an object reference.

该函数在我的LeadFunctions类中定义,是一个公共函数。为什么这不起作用?

0 个答案:

没有答案
相关问题