Data-bind class that explicity implements interface

Diesel

Contributor
Joined
Aug 18, 2003
Messages
662
I've been wondering this for a while, might as well pose the question here.

I have interface A and class B defined as:

Code:
public interface A
{
  string Name { get; set; }
  string Desc { get; set; }
}

public class B: A
{
  private string m_Name;
  private string m_Desc;

   string A.Name
{ get { return m_Name; }
   set { m_Name = value; }
 }

string A.Desc
{
  get { return m_Desc; }
  set { m_Desc = value; }
}
}


I want to data-bind an array (or list, doesn't matter) of Class B to a datagrid.
How do I do it?
 
Back
Top