i have the following code:
private int[] GetIds<T>(string nameString) where T : DomainBase
{
List<int> ids = new List<int>();
if (String.IsNullOrEmpty(nameString))
return ids.ToArray();
[more code here . . . .]
return ids.ToArray();
}
is there anyway i can add another contraint on the "where T" to make T support a certain interface as well (IFoo for example) in addition to the DomainBase