小编Ale*_*imp的帖子

用户是否需要授权我的Facebook应用程序通过我的网站上的提要对话框发布?

我想在网站上使用Facebook 提要对话框.看来我需要创建一个应用程序才能使用它.它是否正确?

在通过Feed对话框发布之前,网站访问者是否需要授权我的Facebook应用?

facebook facebook-apps

2
推荐指数
1
解决办法
359
查看次数

在C#中,如何检查属性上是否应用了XmlIgnore属性?

我想检查propertyInfo以确定XmlIgnore属性是否应用于给定属性.我怎样才能做到这一点?

c#

2
推荐指数
1
解决办法
1707
查看次数

问号在这段代码中意味着什么?

问号在这段代码中意味着什么?

<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)

javascript

1
推荐指数
1
解决办法
204
查看次数

返回IEnumerable <IMyInterface>将无法正常工作 - 必须使用IEnumerable <MyObj>

我想回来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接口应该可以正常工作.

.net c#

0
推荐指数
1
解决办法
80
查看次数

标签 统计

c# ×2

.net ×1

facebook ×1

facebook-apps ×1

javascript ×1