I have some code that uses the GetOrAdd function from ConcurrentDictionary to add values with a unique key to a holder. However, I want to be able to tell if a values key is found (i.e. a true returned from TryGet) or whether it has to be added.
I need help my old .net framework 4.8 console application has .rdlc reports folder. It works fine. Now I have to refactor the same project in .net 8.0. But my .rdlc did not work. How to use it and run reports in my .net 8.0 console application....
I want to start by saying that I need some guidance, the first thing is that my player is colliding with the upgrade(Cube) object 2 times every time, so instead of receiving 2damage, I receive 4 damage. This is the colliding code:
I have an application based on Josh Smith's MVVM Demo, with the business logic replaced. The user clicks links that dynamically generate tabs. Each tab has a view and viewmodel. The tab views contain child views one of which contains multiple...
I don't see an error at first sight. The List ids, doesn't take the data.Id value, which I take from @bind.Value=@data.Id. I don't know why. Pleasy any suggestions, I am new to data binding. I print out the list by the last Console... line and I get...
I am working with a C++ dynamic link library from xatlas that exports a function with the following signature: __declspec(dllexport) void xatlasSetPrint(xatlasPrintFunc print, bool verbose);. The xatlasPrintFunc is defined as typedef int...
I am placing a button in another application window using the code from the link below:
unfortunately the button is only visible for 2-3 seconds. then disappears. How can I find the reason. I want the button to be visible until the window in...
I'm working on a two player fighting game, where one player can hit the other player. All hits are marked as a strike or a grab, and when an opponent is hit with a grab I want the opponent to follow the position of the first player for as long as...
i want to transfer data From postgre with context _rentContext to microsoft sql server with context _rentContextSql. In my program first I check if that record exists in _rentContextSql it doesn't add it to the _rentContextSql but in the end, when I...
lately I am working on a case of unwanted redirects on our Azure hosted ASP .NET Core app which uses IIS. We have a problem with request containing two HTTP/HTTPS prefixes. I entered the Failed Request Tracing logs and see this (look at the...
I've created a project App.Data that contains domain objects and a base class that implements IDbContextFactory for creating a DbContext. The code is available here.
Generating the migrations in a seperate assembly works well.
I want to make a non-tiled (without use of tilemaps) open world. I have figured out that scene based system is not really good at open worlds building, so i came up with creating single scene with many square planes. My scripts are automatically...
I the code below I have a TSql query which has Or condition in its join. If I want to convert it to Linq in C# how can I rewrite it.
SELECT P.Id AS ProductId FROM generalinv.InventoryTypeProductTypeMapping AS ITM INNER JOIN master.Product AS P ON...
I have a Winforms app written in C#, which is also used on Linux machines, and it runs fine using Wine. I only have a problem with getting the path to the Desktop when running on Linux (Wine). In the code I'm using...
Blazor has a callback AsyncEventHandler struct that is used for declaring events in a component. Here’s a useful discussion about how to get called by the event.
I’ve found that the method assigned to an AsyncEventHandler can return void or Task....
I have a .NET 8 C# Azure Functions app. It calls a third party vendor API, which returns a very large JSON. Most of the times the following code works, but only sometimes it throws 413 Request Entity Too Large error. When it throws an error in my...
I'm currently facing an issue with my AICarScript in Unity, specifically with the path array being empty. I've implemented a waypoint-following system where the car should follow a path defined by child objects under a...
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения