1
可以以某種方式從我的墊片的內部調用默認方法嗎?墊片使用默認方法實現
我試過這個,但它不起作用。
ShimConfigurationHelper.GetConfigValueString = (key) {
switch (key)
{
case "SpecialKey":
return "some-value-for-testing";
default:
return ConfigurationHelper.GetConfigValue(key);
}
};