Category "c++sharp"

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

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

.net Core 3.0, DirectoryNotFoundException with Xunit Integration test

I have a new issue working on migrating my Xunit integration test on .net core 3.0. I moved the project in a subfolder and now I have a DirectoryNotFoundExcepti

WCF Service Send Email On Outlook | Exception from HRESULT

I have created a WCF Project in .NET 4.5 to send emails from Outlook 2013 Or 2016 and host it on windows server 2012 and iis 8. When run Service from Visual

How can you get the selected option of a dropdown with Playwright

I am using the C# Language Bindings of Playwright. Example HTML: <select id="txtType" name="Type" class="form-control"> <option>Blog Posts&l

How can you get the selected option of a dropdown with Playwright

I am using the C# Language Bindings of Playwright. Example HTML: <select id="txtType" name="Type" class="form-control"> <option>Blog Posts&l

How to set value by call variable name from string c#

Now I'm new for c# development. I have 100 data from Array and also have 100 variables. How can I match 100 data with 100 variables? for example for(int cou

Avoiding generic class with many type parameters, when the consumer of those types are tightly coupled

I am trying to come up with a way to do this where I can have type safety but also loose coupling of a couple of different components in my class. I am running