Git Product home page Git Product logo

Comments (6)

thomasgalliker avatar thomasgalliker commented on June 15, 2024

Oops! Iā€™m sorry for this. Gonna have a look into it asap.

from objectdumper.

thomasgalliker avatar thomasgalliker commented on June 15, 2024

@url00 can you please check the lastest NuGet pre-release, 2.1.18332.5-pre
What do you think about the new method signature: Dump(Element, DumpStyle, DumpOptions)?
Would you keep the DumpStyle inside DumpOptions?

from objectdumper.

url00 avatar url00 commented on June 15, 2024

First, thanks for the quick response!
Second, I feel like it's rather a semantic difference. The question is: how often does the style change?
By putting it separate as its own parameter, it suggests that it changes often.
It's not much functionally different than something like this:
.Dump(thing, new DumpOptions { DumpStyle = DumpStyle.Console })

I personally wouldn't have it as a separate parameter, but I don't think it's wrong.

from objectdumper.

thomasgalliker avatar thomasgalliker commented on June 15, 2024

As a user of the library, I would like to have DumpStyle inside the options. From the development perspective I may have to cleanup things internally when I do it like this. Anyhow, I think I gonna change it back the way it was before, just as you said:
.Dump(thing, new DumpOptions { DumpStyle = DumpStyle.Console })
...and a second method that simply takes the DumpStyle only:
.Dump(thing, DumpStyle.Console)

from objectdumper.

thomasgalliker avatar thomasgalliker commented on June 15, 2024

This Nuget should do it: https://www.nuget.org/packages/ObjectDumper.NET/2.1.18332.7-pre
Let me know if it works as expected, I'll release it to final then.

from objectdumper.

url00 avatar url00 commented on June 15, 2024

Works great as far as I can tell! Thanks!

from objectdumper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.