Advertisement
vencinachev

GraphNode

Sep 10th, 2019
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. class Node<T>
  2.     {
  3.         private T value;
  4.      
  5.         public T Value
  6.         {
  7.             get
  8.             {
  9.                 return this.value;
  10.             }
  11.             set
  12.             {
  13.                 this.value = value;
  14.             }
  15.         }
  16.  
  17.         public Node(T value)
  18.         {
  19.             this.Value = value;
  20.         }
  21.  
  22.         public override string ToString()
  23.         {
  24.             return this.value.ToString();
  25.         }
  26.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement