Comment by Sinatr on How to remove duplicate lines keeping last one
It could be XY problem, maybe you shouldn't include pdf footers from empty pages into string or include footers just once?
View ArticleComment by Sinatr on How to fix poor C# pattern formatting e.g. using...
How about expression-bodies methods ? fiddle. I dislike original snippet formatting tbh.
View ArticleComment by Sinatr on Is it good practice to pass tracked Entity object to...
First you add foo and then (later) you modify it. That could be a problem if database is accessed by another client and client expect bar to be present or client can modify/delete foo himself. We don't...
View ArticleComment by Sinatr on System.Text.Json.JsonSerializer.Deserialize is not...
Use records, see fiddle.
View ArticleComment by Sinatr on How to add an attachment in C # using OpenXML SDK
What exactly you don't understand? Can you provide a link to official documentation you are not understanding? Have you tried to research the topic, looking for similar answers, tutorials, etc.? Is...
View ArticleComment by Sinatr on How to extract detail rows from text
It could be XY problem, maybe you shouldn't include pdf footers from empty pages into string or include footers just once?
View ArticleComment by Sinatr on Moving Blender Objects With WPF C#
What has WPF to do with Blender? What is model: 1) a file, which you have to modify, 2) an object in opened Blender application, which you need to modify (via plugin written in WPF if that make sense)...
View ArticleComment by Sinatr on Automatic property dependent on other properties
Does AA property really needs to belong to the same class? Why not having separate class, taking an instance of A and being responsible for constructing (factory?) of new AA if either/specific property...
View ArticleComment by Sinatr on Null check with spread operator
oldList is OldListType x ? [..x] : null ?
View ArticleComment by Sinatr on Image flashes when maximizing Avalonia window
What is the expected behavior? If i open any jpg-file with Photos (windows 11 app) it flickers even more during switching between normal/maximized window. I only notice flickering after you told me....
View ArticleComment by Sinatr on OrderBy with string in LINQ .NET,
What is orderBy? A property name passed as string?
View ArticleComment by Sinatr on Is this usage of InotifyPropertyChanged and effective way?
Please go to codereview, make sure question is on-topic there. The reflection approach is obviously slow (bad), there are better ways, see ReactiveUI, MVVM Toolkit, source generators (here is...
View ArticleComment by Sinatr on Parsing .ini file using Linq
Maybe linking will help? Related, related.
View ArticleComment by Sinatr on How can i make MAUI Editor that expands its height based...
Please post minimal reproducible example. I tried adding Editor to my view and with AutoSize="TextChanges" and VerticalOptions="Start" it start small (one line), but expands without problem as I type...
View ArticleComment by Sinatr on WPF and MVVM Page Navigation
Is it a working code, which you want to improve? Consider doing code review.
View ArticleWhy the subscriber of WhenAnyValue is not triggered on property changes after...
I have MAUI application with ReactiveUI.MAUI and ReactiveUI.SourceGenerators packages.Here is view model:public partial class VM: ReactiveObject{ [Reactive] public partial string? Property { get; set;...
View Article