Category "c++sharp"

How do i get the access token from the reques

I'm using account linking on amazon and I've managed to configure it to send my user's acessToken by a Json. I looked in the amazon documentation and it says th

Ajax call doesn't pass object to controller

I am trying to pass a string to an IActionResult function in an asp.net core 3.1 controller. Ajax: function CreateApprover() { const input = { Plant

How do I call the injected dependency 'level' and use it as a condition in an IF statement? C#

An object reference is required for the non-static field, method, or property 'Form1.level' public Form1( int level ) { this.level = level; playtune()

C# create crosshair overlay for video game

(I know this is very bootleg) I've currently made a FORM that acts as an overlay and I'm using panels as the crosshair however whenever I try to put the panels

Instaniate objects on Raycast

So, I want the code to instantiate clone objects onto the new Raycast points if the int i<Random.Range I have a code that allows to position an object onto t

Unity fill array Gameobject from another script

I have been follow video from youtube for creating custom tabs. But in condition Iam using dynamic panel, and then in script has to fill panel to array Gameobje

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