Relations System between two objects

Let's say I have an ObservableCollection<Person>.

Now, every student can have some sort of opinion on every other person. What would be the best way to code something like this, so that it's accessible from both objects?

I thought about something like this for a relations:

enum RelationPoint { Neutral, Like, Dislike, Love, Hate } List<RelationPoint> relation; 

How can I define something like this for every person?

by MrReynevan2 via /r/csharp

Leave a Reply