1 Star 0 Fork 0

pedoc / EnumerableVisualizer

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

EnumerableVisualizer

Visual Studio Debugger Enumerable Visualizer without any [Serialize] attribute, using Json. Works only with .NET.

The .NET Core support might come with Visual Studio 2019.

This is a still work in progres. Pretty much it is an un-edited experiment.

Source

Features

  • Visual Studio 2017, 2019
  • One level nesting, deeper items displayed in json string
  • Displaying result in DataTable in DataGridView
  • Column sorting
  • Filter and highlight searched words
  • Select, copy and paste to Excel
  • Currently supported: List<>, Array, ArrayList

Installation

Copy the following files from the folder Dist (or compiled files) to your version of Visual Studio c:\Users\YOUR-PROFILE-NAME\Documents\Visual Studio 2017\Visualizers\

  • CodeCapital.EnumerableVisualizer.dll
  • Newtonsoft.Json.dll

Known issues

  • Many I am not aware of
  • A list with duplicate property name (e.g. upper/lower case issue UserId, UserID) throws an error as DataTable doesn't accept duplicate columns, this is rather rare situation, most likely bad object design

ToDo

  • Create Tests
  • Add more collection types
  • Save window position, height, width
  • Check if there are not better DataGridView options

At the moment we can visualize these simple collections, test examples:

Example 3.1

Example 3.1

Example 6

Example 6

var list1 = new List<int> { 1, 2, 3, 4, 5, 6, 7, 8, 9 };

var list2 = new List<string> { "Vaso", "Lena", "Helean", "Eva", "Viktoria", "Ada", "Lucia" };

var list3 = new List<Person>
{
    new Person("Vaso", 40, new Car("VW", 2017, DateTime.Now)),
    new Person("Lena", 45, new Car("Skoda", 300, DateTime.Now.AddDays(-5))),
    new Person("Phu", 20, new Car("Skoda", 3000, DateTime.Now.AddDays(-5))),
    new Person("John", 45, new Car("Skoda Subaru", 300, DateTime.Now.AddDays(-5))),
    new Person("Bob", 20, new Car("Skoda 23", 300, DateTime.Now.AddDays(-5)))
};

var list31 = new List<Person>
{
    new Person("Vaso", 40, new Car("VW", 2017, DateTime.Now, new Gadget("Phone"))),
    new Person("Lena", 45, new Car("Skoda", 300, DateTime.Now.AddDays(-5), new Gadget("Phone"))),
    new Person("Phu", 20, new Car("Skoda", 3000, DateTime.Now.AddDays(-5), new Gadget("Tv"))),
    new Person("John", 45, new Car("Skoda Subaru", 300, DateTime.Now.AddDays(-5), new Gadget("Phone"))),
    new Person("Bob", 20, new Car("Skoda 23", 300, DateTime.Now.AddDays(-5), new Gadget("Radio")))
};

var list4 = new List<Car>
{
    new Car("VW", 80),
    new Car("Skoda", 300, DateTime.Now.AddDays(0)),
    new Car("VW 2", 2018, DateTime.Now.AddDays(-10)),
    new Car("B Skoda", 300, DateTime.Now.AddDays(30)),
    new Car("8080 2018", 300, DateTime.Now.AddDays(-500))
};

var list5 = new[]
{
    new Person("Vaso", 40, new Car("VW", 80, DateTime.Now)),
    new Person("Sandy", 23, new Car("Porsche", 300, DateTime.Now.AddDays(-5)))
};

var list6 = new[]
{
    new Person("Vaso", 40, null),
    new Person("Sandy", 23, new Car("Porsche", 300, DateTime.Now.AddDays(-5)))
};

var list7 = new[]
{
    new Person { Name = "Vaso"},
    new Person()
};

var list8 = new[]
{
    new Gadget("Phone"),
    new Gadget("Radio"),
    new Gadget(""),
    new Gadget("Self Drive"),
    new Gadget("Tv")
};

var list9 = new[]
{
    new Car(new Gadget("Phone")),
    new Car(new Gadget("Radio")),
    new Car(new Gadget("")),
    new Car(new Gadget("Self Drive")),
    new Car(new Gadget("Tv"))
};
MIT License Copyright (c) 2018 Code Capital Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
C#
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
C#
1
https://gitee.com/pedoc/EnumerableVisualizer.git
git@gitee.com:pedoc/EnumerableVisualizer.git
pedoc
EnumerableVisualizer
EnumerableVisualizer
master

搜索帮助