Skip to content

TreeView<X> support #267

Description

@tznind

One of the cool things about TreeView is it's ability to support generics e.g.

      TreeView<FileSystemInfo> fileTree = new TreeView<FileSystemInfo>();
      TreeView<GameObject> tree = new TreeView<GameObject>();

I want to tackle this over the holiday period. At first I was worrying about the fact that the T type is arbitrary and likely tied to user code. Then I realized we can just parse the Roslyn code tree to find the names of the T classes and (if it's not a standard Type) declare our own completely empty ones pre compilation (i.e. at Open time)

e.g.

  // Just declare each of the users classes ourselves in memory
  class GameObject
  {

  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions