close
Skip to main content
Filter by
Sorted by
Tagged with
Tooling
1 vote
4 replies
88 views

I find myself quite regularly forgetting to use the using statement when getting IDisposable objects in my code. Unfortunately the CA2000 analyzer is quite limited and doesn't usually trigger in ...
Jez's user avatar
  • 30.6k
Best practices
0 votes
5 replies
73 views

Briefly about the question: How to reach same performance with images like explorer, FastStone Image Viewer since they allocate not so much memory unlike my app. About the project It's WPF C# image ...
KonTuk's user avatar
  • 117
0 votes
1 answer
91 views

if (Input.GetKeyDown(KeyCode.D) || Input.GetKeyDown(KeyCode.RightArrow) && IsOnGround) { P_Rigidbody.AddForce(GroundSpeed, 0, 0, ForceMode.Acceleration); } else if (Input.GetKeyDown(...
User's user avatar
  • 11
Best practices
1 vote
5 replies
207 views

What is the most idiomatic way to sort an array in reverse order in C# 14? Arrays now have methods from the MemoryExtensions class. For example, given the following array: int[] arr = [3, 1, 2, 5, 9]; ...
Soul Catcher's user avatar
1 vote
0 answers
38 views

I'm developing a simulation program in Avalonia 12. It works well on desktop, but there are a few issues with the webassembly version. The biggest challenge is local file access. I'm using the ...
Peter Jaksch's user avatar
2 votes
1 answer
111 views

I am just learning C# and I am struggling with a treeview in a Winforms project. According to MSDN the TreeView.AfterSelect event does not occur when a tree node is unselected: https://learn....
Terry's user avatar
  • 93
0 votes
0 answers
49 views

How can I place a circular (curved/round) stair in Hexagon Smart 3D using a custom command in C#? I can create a straight stair in Hexagon Smart 3D using: Stair stair = new Stair(system, part, top, ...
kingpin's user avatar
  • 26
-1 votes
0 answers
84 views

I have an ASP.NET MVC application on .NET 4.7.1. This is a POST method on a System.Web.Mvc.Controller. If I call AnotherMethodAsync directly with await, the application locks up on that line and never ...
Eric's user avatar
  • 2,446
0 votes
0 answers
45 views

I'm trying to return a string from my popup. The code-behind I have looks like this: public partial class SelectDb : PopupPage { SelViewModel Sv; TaskCompletionSource<string> taskCompSrc;...
Bob Gatto's user avatar
  • 186
0 votes
1 answer
51 views

I've done all the setup and it's not working. I configured the program.cs file, added the policy from AddRequestTimeouts to the controller, and its still returnig a 504 error. I configured the timeout ...
Vagner Miv's user avatar
Best practices
0 votes
5 replies
70 views

Goal - Extract links from email Body I extract links from outlook emails where I need to avoid counting links from the quoted thread (contents from prev mails in the thread)/ signature that clients ...
sriram's user avatar
  • 15
Best practices
0 votes
6 replies
154 views

Currently have 32 external (struct) files in my thumbdrive Have a file that contains names of each of the 32 struct files (filelist.dat) Need to find a way to read data from each of the 32 external ...
Robert Hohlt's user avatar
3 votes
1 answer
88 views

I am attempting to include an EXE in a NuGet package, but when the NuGet package is installed, the EXE does not show up in the output directory as expected. In my production environment, I get build ...
manderson's user avatar
  • 634
0 votes
1 answer
160 views

I am trying to use Prism (DryIoc) for dependency injection. Given the following class: internal class MainWindowViewModel : BindableBase { private readonly ITestingService _testingService; ...
Martin Robins's user avatar
0 votes
0 answers
60 views

I am working with .NET MAUI on Windows (WinUI) and using the default Switch, which maps to ToggleSwitch. I am trying to achieve consistent styling for different switch states, but I am facing issues ...
Dev's user avatar
  • 339

15 30 50 per page
1
2 3 4 5
108159