// LinkedListTest.h #pragma once #using #include "stdlib.h" using namespace System; namespace LinkedListLibrary { public __gc class ListNode { public: ListNode( IComparable*); ListNode( IComparable*, ListNode *); __property ListNode *get_Next() { return next; } __property void set_Next(ListNode* N) { next=N; } __property IComparable* get_Data() { return data; } __property void set_Data(IComparable* D) { data=D; } private: IComparable* data; ListNode *next; // TODO: Add your methods for this class here. }; public __gc class List { public: List( String * ); List(); void AddNode(IComparable*); ListNode* Search(IComparable* data); void Print(); //various member functions private: ListNode *first; String *name; }; }