-1
通用接口我有一个接口财产
/// <summary>
/// Summary description for IBindable
/// </summary>
public interface IBindable<T>
{
// Property declaration:
T Text
{
get;
set;
}
}
现在我想实现这个接口在我的课
public class MyTextBox :IBindable<string>
{
//now i how can i implement Text peroperty here
}
我不想要实现它像
string IBindable<string>.Text
{
get { return "abc";}
set { //assigne value }
}
我想实现它像
public string Text
{
get{} set {}
}
我不能把握的问题......你可以做你说什么。 .. – digEmAll 2010-04-28 17:53:32
这里有什么问题? – 2010-04-28 17:55:01
我猜OP没有意识到这是有效的...... – 2010-04-28 17:56:08