Category "c++sharp"

Multiple search on array on ElasticSearch keeping order of elements

I'm trying to do a multiple search on multiple arrays on Elasticsearch. I'm using NEST on C#. Each array has the same length and is mapped to an ElasticSearch d

How to deserialize Json into an C# object and fill the components into a dictionary

{ "success": true, "data": [{ "type": "Employee", "attributes": { "id": { "label": "ID", "va

rayHit.point Instantiates at 0 0 0 Unity

I made a Gun Script (using YT videos) and a Bullethole GameObject should Instantiate at the Position the RayCast hits an Object. But it is always at 0 0 0. I tr

Add padding RSA PKCS#1 after hash SHA256 and before calling API of signature

In order to use a certificate stored in a distant HSM (using cloud signature), I'm actually trying to use an API that generates a PKCS#1.5 signature given a SHA

Why is my player's movement speed changing? (using Fishnet with Unity)

I'm fairly new to Unity, and I've begun learning how to use Fishnet networking. I've created a basic player movement script that syncs player position far faste

Wrong Issuer in ClaimsIdentity on Itfoxtec binding

Our web api gets the SAML response from the Idp, and when we run the following code: var binding = new Saml2PostBinding(); var saml2AuthnResponse = new Saml2Aut

Why is calling SslStream.AuthenticateAsServer and SslStream.AuthenticateAsClient with the same certificate in the same process not supported?

I recently ran into an issue when converting socket communication to use System.Net.Security.SslStream instead of NetworkStream. This conversion was targeting

Selenium Webdriver test removes input on button click

I am running into an issue with my selenium webdriver test where, if I input something into a phone number field and then click the call button, it will clear o

Windows forms c# connect to specific accesspoint by BSSID

I have a windows form written in c#. I've made a listview that finds and sums up every wifi network it can detect, giving the SSID, BSSID, and more. I'm using M

How to send data from Child to Parent component in Blazor (when a list is clicked)

I have a simple component like this: @foreach(book in store) { <li @click="@SelectBook(@book.id)"> @book.title <li> <!-- book.id throws error

Maintain sorting throughout paging in gridview in asp.net

How to maintain sorting throughout paging in gridview in asp.net. Below is my code behind for binding grid, paging, and sorting private string SortDirection {

Async task getting value off of JSON return, XAML/WPF app

I am trying to get a single value off of a JSON return. My call is doing an HttpClient call to a webservice, it returns me my Json object. I need to now get a v

How to implement SAML SSO with AZURE AD in ASP.NET MVC Web Application

I create a simple .NET web application and I want to implement SAML SSO with Azure AD. I am using .NET version 4.8. I couldn't find any documentation to set up

How do I get JSON returned from a Playwright POST?

I have created a small Playwright program in C# which submits a Url, finds a button on the returned document, selects a button on that document and 'clicks' it.

Get array of elements from list that sum to value, using Parallel.ForEach (multiple threads)

I'm using the below code to get an array of elements from list that sum to value. However, it only using 1 CPU. My PC has 64 cores so I want to use 100% CPU to

How to populate an object inside of an object and call it whenever in C#

So I have an object (Location) This Location Object contains what is a Location I have also added another object that is a Venue on the last line. namespace En

I was watching a tutorial on unity but I came across these errors [duplicate]

everything is in unity If anyone can help me I am new This is the code for PlayerInput: https://pastebin.com/hWNPVmZJ

Error while introducing foreign key constraint

I'm getting an error while trying to EF database update. I have 2 entities, Flight and City: public class Flight : Entity<Guid> { public Airline Air

Need Example in C#: How To Add Custom Button to Outlook Context Menu

My customer wants to add a button (or menu item) to a right click (context) menu in Outlook 2016+. I've found examples that add items to the ribbon menu, but c

Need Example in C#: How To Add Custom Button to Outlook Context Menu

My customer wants to add a button (or menu item) to a right click (context) menu in Outlook 2016+. I've found examples that add items to the ribbon menu, but c