Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Word
- {
- public Word Reference { get; private set; }
- public string Title { get; private set; }
- public Word(string title, params Word[] properties)
- {
- this.Title = title;
- foreach (var i in properties) {
- Properties.Add(i);
- }
- }
- public Word(Word reference)
- {
- Reference = reference;
- Title = reference.Title;
- }
- public List<Word> Properties = new List<Word>();
- public override string ToString()
- {
- return Title;
- }
- }
- -------------------------------------------
- Word Moon = new Word("Moon");
- Word Sky = new Word("Sky");
- Moon.Properties.Add(new Word("Place", Sky));
- Moon.Properties.Add(
- new Word("Walk",
- new Word("Walk",
- new Word("Slow"), new Word("Think",
- new Word("Inside",
- new Word("Deep"))))));
- Moon.Properties.Add(
- new Word("Watch",
- new Word("Watch",
- new Word("We",
- new Word("Place",
- new Word("Ground")),
- new Word("Sin",
- new Word("Many"))))));
- Word Stars = new Word("Place", Sky);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement