Category "c++sharp"

Forcing .NET application to use TLS 1.2 or later

I wonder how to force a .NET application targeting .NET Framework 4.8 to use TLS 1.2 or later (including future TLS versions). The application execute as a Wind

How to use Google's "SimpleMinCostFlow" - C#

I want to create a Max Flow - Min Cost program in C# -Visual studio. I'm using this Guide , but I get error at this line MinCostFlow minCostFlow = new MinCostFl

Button Click to return to the same page with same input parameters

I want users to navigate back to the same page after the button is clicked on the page. If the user URL is https://localhost:xxx/Inventories/Index/38?custID=38&

How to import functions from an external namespace onto my project in c sharp

I want to import functions from a different namespace in an external file into my c sharp project. But what's the right method to do it. I copied the .cs file w

Accessing a public member from within a generic method

I'm trying to have some toolbox with each tool in that toolbox being something quite different in functionality. So every tool would require its own config to b

What is the difference between the 'namespace' and the 'using' keywords in C#?

I'm new to C# and I don't fully understand what a namespace is, and what the using-keyword does. I'd appreciate it if someone could explain the difference. From

Fluent Validation to check just ID property

I am using Fluent Validation in my project. I have one validator class. public class CarValidator : AbstractValidator<Car> { public CarValidator()

Xamarin TabbedPage Specified Cast is not valid

I have a TabBar in my AppShell which has five tabs. Three of these tabs are ContentPages whereas the other two are TabbedPages. All three tabs with ContentPages

ASP.NET MVC (Razor) vs Angular 5

We are currently considering moving from ASP.NET MVC to Angular 5, mostly because it seems like the best and latest framework. However none of us seems to be ab

The specified object was not found in the store., The process failed to get the correct properties

I'm trying to achieve folder from a user with an admin user (just for test) ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2013_

.Net Core Oracle Connection time out

we have application .net core with oracle database published since 8 months unexpectedly returned request connection time and we didn't make any deployment and

ASP.NET Core: [FromQuery] usage and URL format

I am trying to use [FromQuery] in my web api and I am not sure how to use it. Here's the GetAllBooks() method in the controller: [HttpGet] [Route("api/v1/Sh

Is this custom Composite Key type sound and performant?

I need to model a composite key type that could have any number of key / value pairs. I need the key to be convertible into a hashed string value that can be st

Excel column header problem when we export data from c#

I have an exported xlsx file from c# (through angular).The Properties name which I want to be the columns header change in excel!( the first letters are changed

Making Multiple playered Multiplayer Card Game With Mirror

I am trying to built a multiplayer card game with max 4 players and I am very new to Multiplayer Games. Idea is there is a "Deal Card" button, when a player cli

Decrypt Cookies (encrypted_value) from Chrome/Chromium 80+ in C# - Issue with Auth Tag

I got an issue with decrypting cookies that are stored in Chrome's sqlite db under encrypted_value. The extraction from the sqlite db works just fine: // fileP

How do I create a C# 8.0 Console application?

I tried creating a Windows Forms .NET core 3.1 application via the template and switching the output type to Console Application. Here's my code: static class

My Unity project contains empty compiler errors that stop me from entering play mode. How do I resolve them?

I'm working on a project with a friend, we are using git for version control. They created the unity project and I pulled it to my computer as well. Every time

Failing to compile ASP.NET Web API with MSBuild giving a MSB3021 error

enter code here enter image description here I'm having a problem when trying to compile and build an ASP.NET Web API project targeting .NET6.0. For some reason

How to declare global variable in Program cs and use it in controllers in .NET 6.0 Web Api

I have default Program.cs file from Web Api template in .NET 6.0. I am adding variable "test" so I can use its value in controllers. var builder = WebApplicatio