Comments (5)
Thanks for reporting this issue. I'm looking at it right now. I will post a pre-release nuget package as soon as the fix is ready.
from objectdumper.
The nuget pre-release that contains the bug fix for this issue is available here:
https://www.nuget.org/packages/ObjectDumper.NET/4.1.1-pre
Can you @ibs-ts verify if the problem is solved and give feedback, please? I'll release a stable nuget version afterwards.
from objectdumper.
I've tested 4.1.1-pre with our rather complex model and at least the integration tests succeed.
Thank you for the fix.
Of course it requires more testing and benchmarking after the stable version is released to find any issues.
from objectdumper.
Side note:
After writing the above comment, I had the idea to add a delegate property to the SampleData-class.
This results in a 'wall-of-text'-output. It's not part of this issue, but I add this so you are aware:
var definition = new SampleData() { Name = "Test", Func = (param) => param };
var str = ObjectDumper.Dump(definition, new DumpOptions()
{
IndentChar = '\t',
IndentSize = 1,
LineBreakChar = Environment.NewLine,
DumpStyle = DumpStyle.CSharp
});
Console.WriteLine(str);
public readonly record struct SampleData
{
public required string Name { get; init; }
public Func<object, object> Func { get; init; }
}
Delegate/lambda/expression output might open pandoras box. I've tried this in the past with visitors. But as soon as you inject parameters (external or referenced) it causes headaches.
from objectdumper.
Okay. Thanks for testing. Let's look at the other problem in a separate issue.
Func<> are always a bit difficult to handle. I can try it with the given code. Do you want to create a new issue?
from objectdumper.
Related Issues (20)
- [Bug] Need a strongly named assembly to use with signed projects HOT 5
- [Enhancement]Improved way to exclude (readonly) properties
- License Clarification. How to support?
- [Bug] How to avoid Stack Overflow? HOT 10
- 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.