Category "c++sharp"

I would like to pass the values that i have in my view to a action

I'm developing a school project using a html.beginform to when i click in a button i go to a diferent Action, but i need to pass the values that i have inside m

EFCore navigational properties are not mapped

I have a model Contact with three navigational properties of type Place but when I make a request in to database ids are filled but navigational properties are

C#: How to return optional ref to struct

In C# how do I write a function that may or may not return a ref to a struct? What I basically want is a return type Nullable<ref OutboxSlot> but the comp

Compare a string in if()

I'm trying to compare a string in an if(string = ""), but it's apparently not the same the string is "thisColor", it is defined by the content of a file. I trie

Azure Function App Unable to get Connection String : Value cannot be null. (Parameter 'connectionString')

I have an Azure Function with DDD Architecture. My project structure looks like this: local.settings.json file Looks like this: { "IsEncrypted": false, "Va

CORS Error in Angular App With Asp.net Core Webpi

I've been given a task to to build a web client that interacts with the following API: https://docs.openaq.org/ It should be able to send different parameters

Check if list of string contains exact part of string

I have a List of strings as follows, List<string> str = new List<string>() { "7, 31", "2, 4", "5, 6" }; My input will be something like "1, 2" or

Is there a way to covert Unicode Hex Character Code &#x61; to a simple "a" so that I can get an alphabetic string?

This character format encoding description can be found in All such encoded characters and character description. The exact specific string I want to convert is

Change image source when property value changed

I have this textblock and image icon in HomePage.xaml, <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://sch

String or binary data would be truncated when input data from winforms

I'm trying to insert record into my database through a form made by Winforms. At first I try to insert it directly in SQL Server: INSERT INTO item (name, price,

TreeView To JSON

From the JSON file, I was able to build a treeView in windows forms. Now I need to do the reverse process - save the tree to a JSON file after pressing the butt

How to use async calls in WPF event handlers

I have this event handler in WPF with async call. private void Button_Click(object sender, RoutedEventArgs e) { var folderStructure = restApiProvider.GetFol

How to extract image from TCP Stream

I need your help. I was creating an application in c# that converts the data from the IP camera to an image (JPEG). I was able to convert the image using the be

Xamarin Prism get the list of register pages

Is there a way I can have the list of registered pages for navigation in Prism? Or a function where it returns true when it receives a name of a page that is al

How to cancel hiding a Devexpress flyoutpanel according to a condition?

I have a FlyoutPanel and I want to hide it according to a condition. For example: I want to hide it when a counter is equal to 3. What I have tried is: private

What's the difference between alternative visited and just visited in the opencover?

Committing... Visited Classes 0 of 18 (0) Visited Methods 0 of 68 (0) Visited Points 0 of 133 (0) Visited Branches 0 of 74 (0) ==== Alternative Results (includ

DotNetZip doesn't read all entries from zip stored at azure blob storage

I have a zip stored in azure blob storage which I'm streaming it locally and iterating its entries. I'm getting the stream like that: BlobClient blob = _blobSer

Seamless Loop Problem with Media Foundation

I am trying to make seamless looping video in a game engine, and I have two questions. Even though I used the Sequencer Source, I still found that the playback

MouseDown Event After Seconds

I'm working on a project that have a touchscreen monitor. I have 4 picturebox with two event(Mouse Down , Mouse click ). in this case, when i click on the pictu

Which are secrets keys should stored in client application and which stored in the server? Using NACl.Net/Salt

This is first time I try NACl.NET which are desribed here well. Nuget from here https://www.nuget.org/packages/NaCl.Net/ I take code usage from here https://git