Advertisement
Yarichek

Poem

Aug 13th, 2022
806
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     class Word
  2.     {
  3.         public Word Reference { get; private set; }
  4.         public string Title { get; private set; }
  5.         public Word(string title, params Word[] properties)
  6.         {
  7.             this.Title = title;
  8.             foreach (var i in properties) {
  9.                 Properties.Add(i);
  10.             }
  11.         }
  12.  
  13.         public Word(Word reference)
  14.         {
  15.             Reference = reference;
  16.             Title = reference.Title;
  17.         }
  18.  
  19.         public List<Word> Properties = new List<Word>();
  20.  
  21.         public override string ToString()
  22.         {
  23.             return Title;
  24.         }
  25.     }
  26.  
  27. -------------------------------------------
  28. Word Moon = new Word("Moon");
  29. Word Sky = new Word("Sky");
  30.  
  31. Moon.Properties.Add(new Word("Place", Sky));
  32.  
  33. Moon.Properties.Add(
  34.     new Word("Walk",
  35.         new Word("Walk",
  36.             new Word("Slow"), new Word("Think",
  37.                 new Word("Inside",
  38.                     new Word("Deep"))))));
  39.  
  40.  
  41.  
  42. Moon.Properties.Add(
  43.     new Word("Watch",
  44.         new Word("Watch",
  45.             new Word("We",
  46.                 new Word("Place",
  47.                     new Word("Ground")),
  48.                 new Word("Sin",
  49.                     new Word("Many"))))));
  50.  
  51. Word Stars = new Word("Place", Sky);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement