我想在网站上使用Facebook 提要对话框.看来我需要创建一个应用程序才能使用它.它是否正确?
在通过Feed对话框发布之前,网站访问者是否需要授权我的Facebook应用?
我想检查propertyInfo以确定XmlIgnore属性是否应用于给定属性.我怎样才能做到这一点?
问号在这段代码中意味着什么?
<SCRIPT language=JavaScript>
function reload(form)
{
var val=form.cat.options[form.cat.options.selectedIndex].value;
self.location='dd.php?cat=' + val;
}
</script>
Run Code Online (Sandbox Code Playgroud) 我想回来IEnumerable<IMyInterface>.我有一个类,MyClass:IMyInterface我从一个函数返回.
IEnumerable<IMyInterface> test() {
tmpList = new List<MyClass>();
tmp1 = new MyClass();
tmp2 = new MyClass();
tmpList.Add(tmp1);
tmpList.Add(tmp2);
return tmpList;
}
Run Code Online (Sandbox Code Playgroud)
编译器不允许,这对我来说似乎很奇怪,因为MyClass:MyInterface.编译器给出了错误'cannot implicitly convert type System.Collections.Generic.IEnumerable<MyClass> to System.Collections.Generic.IEnumerable<IMyInterface. An explicit conversion exists. Are you missing a cast?'
(IEnumerable<IMyInterface>)tmp在运行时没有强制转换异常我无法执行返回.我错过了什么?我希望返回IEnumerable接口应该可以正常工作.