Quantcast
Channel: User Sinatr - Stack Overflow
Browsing all 601 articles
Browse latest View live
↧

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 Article


Comment 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 Article


Comment 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 Article

Comment by Sinatr on System.Text.Json.JsonSerializer.Deserialize is not...

Use records, see fiddle.

View Article

Comment 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 Article


Comment 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 Article

Comment 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 Article

Comment 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 Article


Comment by Sinatr on Null check with spread operator

oldList is OldListType x ? [..x] : null ?

View Article


Comment 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 Article

Comment by Sinatr on ObservableAsProperty properties don't work after update...

See docs.

View Article

Comment by Sinatr on Is there an alternative to sqlDataAdapter to update the...

Related

View Article

Comment by Sinatr on OrderBy with string in LINQ .NET,

What is orderBy? A property name passed as string?

View Article


Comment 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 Article

Comment by Sinatr on C# on Linux - how to tell if a path is a regular file?

Related.

View Article


Comment by Sinatr on Parsing .ini file using Linq

Maybe linking will help? Related, related.

View Article

Comment 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 Article


Comment by Sinatr on WPF and MVVM Page Navigation

Is it a working code, which you want to improve? Consider doing code review.

View Article

Why 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

Comment by Sinatr on WPF ComboBox not updating height when items change

Related

View Article
Browsing all 601 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>