title: How to create an object based matrix in C#?
body: <p>Say I need to create a group of person's relationship matrix as following</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>x</th>
  <th>Joe</th>
  <th>Alice</th>
  <th>Linda</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>Joe</td>
  <td>-1</td>
  <td>4</td>
  <td>3</td>
  </tr>
  <tr>
  <td>Alice</td>
  <td>2</td>
  <td>-1</td>
  <td>3</td>
  </tr>
  <tr>
  <td>Linda</td>
  <td>3</td>
  <td>3</td>
  <td>-1</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>Using arraylists or MultiDimensional array is kinda confusing to looping and calculating to me, as I have to create another pair to bind each array index to the person's object. just wondering if there's any better way to access/modify values in such matrix structure, tks</p>
  <p>Edit:
  To be more clear, I'm wondering if there's any existing libraries to help making such matrix easier, my main issue to use multiDimensional arr[row,col], then bind it with Person's list requires some additional works to structure it properly. If something like [Joe,Alice], [Linda, Joe] out of box would make my life easier, lol
  at last, it is my C# skill to be blamed :(</p>