Here is the constructor:
public PartyRoleRelationship(PartyRole firstRole, PartyRole secondRole) { if (firstRole == secondRole) throw new Exception("PartyRoleRelationship cannot relate a single role to itself."); if (firstRole.OccupiedBy == null || secondRole.OccupiedBy == null) throw new Exception("One or both of the PartyRole parameters is not occupied by a party.");
On the last line, where it calls the ProvisionRelationship on _SecondRole, it gives me a runtime error: Type or namespace T cannot be found ...
How can I (a) correctly assign T, or (b) pass a generic type using the constructor? I looked through quite a few posts, but may have missed something due to a lack of understanding. Any help on this would be greatly appreciated.
Phil
source share