Generic Interface with property
- by pranay
i have one interface
/// <summary>
/// Summary description for IBindable
/// </summary>
public interface IBindable<T>
{
// Property declaration:
T Text
{
get;
set;
}
}
Now i want to implement this interface in my class
public class MyTextBox :IBindable<string>
{
//now i how can i implement Text peroperty here
}
I don't want to implement it like
string IBindable<string>.Text
{ get { return "abc";} set { //assigne value } }
i want to implement it like
public string Text
{get{} set {}}