You have several options:
- Create a common interface.
- Use reflection.
- Use the dynamic type in .NET 4.
, , , , , , , , . , , . , , :
1:
partial class A
{
public int Number { get; set; }
}
2:
interface IHasNumber
{
int Number { get; set; }
}
partial class A : IHasNumber
{
}
, - , .
, :
where T : IHasNumber