Category "c++sharp"

Is there property to search in a value list in janus gridex by Containes text

I am bindind a combo in janus gridex with value list. combo binding successfully. But i face a problem when i am searching from this combo. it always search wit

How to rename key value pair within a nested json structure in C#

Hello everyone and thanks for helping me in advance. The following question might sound silly but I'm a beginner about it. Let's start! I have the following jso

ASP.NET Core : how to restrict applying custom attribute on condition during compile time?

Here is the sample code: public sealed class CustomAttribute1 : Attribute {} public sealed class CustomAttribute2 : Attribute {} [CustomAttribute1] [CustomAtt

C#: Simple state machine, how to get state from database and assing it?

I am wondering how to assign a loaded state from a database to a state machine. Simple example IState interface: public interface IState { void Process(MyCl

How do you get paths of copied files from clipboard?

I need to retrieve paths of files and folders currently copied into the clipboard, is this possible in C#? So let's say I do Ctrl + C a folder. That folder will

Difference between debug and release builds in Maui ios

I'm using Maui preview (now release candidate) with a blazorwebview, to build a fairly simple app which connects to a webservice and synchronises data. The wind

IdentityServer4 GetProfileDataAsync is not called for Identity Token, only Access Token

Using IdentityServer 4 (4.1.2), I've added a class implementing the IProfileService interface. The method GetProfileDataAsync is supposed to be called several t

WPF : How to bind a string to Dynamic resource for a label content

I am new to WPf and MVVM. I have Dynamic language change functionality in my wpf application. For this functionality I have 2 Resource dictionary for each langu

What is the easiest way to test multiple versions of a NuGet?

I have two C# projects. Project A is a NuGet package. Project B is a web service. Project A calls the web service. We want B (the web serice) to remain backward

Get Identity Role id - ASP.NET Core MVC

I am new to ASP.NET Core MVC, and I'm trying to develop a popup modal for Edit and Create. The create popup works, but when it comes to edit I can't get the id

C# variables of class are zeroed after P/Invoke call

I'm writing some vulkan code and ran into a problem which I can't get my head around. I've the following code: NativeMethods.cs: [DllImport("libvulkan.1.dylib",

Update to .NET Core 6.0 in JetBrains Rider

A teammate recently updated our code base to use .NET Core 6.0 and I'm trying to build the project in JetBrains Rider. I went to File > Preferences > Envi

vec3 and int in the same SSBO

I have an SSBO that contains a list of structs that contain both integers and vec3s as you can see below. I am using OpenTK for the C# opengl bindings. struct B

MassTransit - Assign consumers to two different endpoints when the consumers are resolved via container

I'm using MassTransit 7.3.0 with Autofac and RabbitMq. So far, I was content for all my services to use a single queue/endpoint per service. I registered my con

.NetCore 3.1 Linq to SQL : List within query

Earlier .NetCore versions allowed several client evaluation strategies, but starting in .NetCore 3.1 stricter rules require updates of badly written queries. Co

It keeps displaying the last data

I'm trying to let user to change the phone number of specific company user entered and displays the new information to user Currently, when I click the change b

AWS PinPoint Send Voice C#

I am trying to develop a Voice Notification using C# (.NET) using AWS PinPoint. AWS Provides the code template for this project for JAVA however I have not seen

How to create a Logger in .NET 6 Program.cs

I have a Data.Migrations project, which will run any Entity Framework Migrations to update the database model. Recently I have updated this project to .NET 6 an

Recursion for finding the smallest sum of numbers in an array

I have a problem. I need to sum up the arrays values to get the lowest possible sum. Rules: You go to next step and take the value (step 1->2) You skip 2 and

How to map fetched API data into JSON object for looping

I have the following working code that fetches a JSON data from Azure API: @code { string responseBody; protected override async Task OnInitializedAsync() {