Comments (6)
Oops! Iām sorry for this. Gonna have a look into it asap.
from objectdumper.
@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.
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.
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.
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.
Works great as far as I can tell! Thanks!
from objectdumper.
Related Issues (20)
- dumping an object with recursive references HOT 3
- Exclude index properties/fields from dumping if object is IEnumerable HOT 1
- Small sample program never exits HOT 2
- Friendly formatting of primitive types HOT 1
- Question on Licensing HOT 3
- Can we dump a csharp struct? HOT 3
- Dump ValueTuples does not work properly
- Dumping a thrown exception fails with InvalidOperationException HOT 3
- Dump to CSharp - decimals depands on the culture HOT 3
- Option for swallowing exceptions HOT 4
- Track already dumped objects HOT 3
- C# 9 / dotnet 5.0 records compatible C# dump style HOT 10
- yaml output HOT 4
- Provide an extension method that Dump everything HOT 9
- It doesn't Dump Fields and Private's??? HOT 3
- BadImageFormatException : An attempt was made to load a program with an incorrect format. (0x8007000B)
- [Bug] Cannot Work HOT 2
- [Enhancement] IEnumerable can display optimization HOT 2
- The comparison of null values to String.empty is not explicit
- [Bug] Circular Reference detection issue HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from objectdumper.