title: array to dynamic list c#
body: <p>For my Programming class I have to manually make  a Linked list and some methods for it, I need to insert Projects sorted,the code which I have written is :  </p>
  
  <pre><code>        public bool Insert(Project project)
      {
          bool gotInserted = true;
          if (IsInList(project) == true)
          {
              gotInserted = false;
          }
          else
          {
              Node tmp = this._head;
              this._head = new Node();
              this._head.Project = project;
              this._head.Next = tmp;
              //SortList(); //is commented, because this method causes problems
           }
          return gotInserted;
  </code></pre>
  
  <p>Can I have a better method to insert the nodes sorted?</p>
  
  <p>Node-Class:  </p>
  
  <pre><code>public class Node
  {
      Project _project;
      Node _next;  
  
      public Project Project
      {
          get { return _project; }
          set { _project = value; }
      }
  
      public Node Next
      {
          get { return _next; }
          set { _next = value; }
      }
  </code></pre>
  
  <p>Sorry for poor grammar, i am Austrian, and in my freetime i don't usually have to think in english.</p>