1
是否可以使用ExcelDNA重載方法?ExcelDNA中的重載方法
例如,我當前的代碼:
[ExcelFunction(Category = "Test",
IsVolatile=true)]
public static String TestMethod()
{
return "Hello Everyone";
}
[ExcelFunction(Category = "Test",
IsVolatile = true)]
public static String TestMethod(String Name)
{
return "Hello, " + Name;
}
現在看來似乎應該是簡單的,但它不會出現,當你調用從Excel的方法來工作 - 事實上,他們不甚至會出現(但是如果您將其他人註釋掉了,會出現一個)。