Category "c++sharp"

How to Read & Write to same Blob file in Azure Function (.NET6)

In Azure Function V1 (.NET4) code below worked fine [FunctionName("run")] public static HttpResponseMessage run( [HttpTrigger(AuthorizationLevel.Anonymous, "pos

C# Datagridview How to set value for DataGridViewComboBoxColumn

I have populated my datagridview which has one combobox column. this way i have populated my combobox column of datagridview. if (dt != null && dt.Rows.

How to open the Property dialog of selected objects in Management Console?

I am searching for the possibility to open default property dialogues for particular Windows objects, like: the property dialogue for a particular service in se

c# OpenIdConnect authentication

I'm trying to secure an API with keycloack. The API is called by a server. So there is no browser. (Logging in via Browser works fine and i can access the api.)

Accessing control inside datalist

my name is Prince. I have a datalist named datalist1, i inputed a label, image and button in the datalist. I inputed the image of a field from my database in my

How can I retrieve multiple sys_refcursor using dapper and c#?

I want to retrieve multiple sys_refcursors from oracle db using dapper. My PL/SQL code below procedure GetData2 (p_result out sys_refcursor, p_result2 out sys_r

Load Assembly compiled with newer .Net Framework than executing assembly

I have an application compiled with .Net Framework 4.0 and I want to load a WPF UserControl inside it. The user control is a dll compiled for .NetFramework 4.8.

C# Rotate pictureBox , I want to move the bus vertically and I cant, can you help me of coding?

using System.Drawing; using System.Windows.Forms; public partial class Form1 : Form { public bool move_right, move_left, move_up, move_down; public in

Game object can't detect others when using collision.gameObject.tag in unity

I have designed a scenario as below: I created an object spawner to collide with things tagged as "ob", using a boolean to manage the timing to spawn new obstac

How can we add DI (Dependency Injection) of a class library to multiple projects in C# asp.net 6

here I am trying to add dependencies from SchoolAppASPv2.Infrastructure to SchoolAppASPv2.Identity but I am not being able to. It shows an error in using Schoo

c#: cannot FindCertificateByHash when loading certificate from X509CertificateStore

I need to add a BinarySecurityToken to the WS security header of a SOAP request. I followed https://stackoverflow.com/a/22560639 and the Samples of MicrosoftWSE

Roslyn SonarAnalyzer.CSharp does not respect rule settings from SonarLint.xml

I am trying to customize some rules, particularly S134 but it does not take my deviation from the default max parameter into account Repro: Create new Console A

VSTEST@2 - error could not find testhost | Azure Pipelines

I'm running tests solution on azure pipeline with help of vstest@2 task. Pipeline distributes test cases on 4 agents and then runs them. Task yaml: - task: VS

EF Core - ValueConverter or OwnedType for simple ValueObjects?

I use value objects to encapsulate validations like maxLength. This is an extract of a sample class without factory method and validation: public class CallingN

Docx to pdf in Microsoft Graph Api failing with error "WordCantOpenDocument"

We are doing a docx-PDF conversion by uploading a Word-document(docx) by first uploading it using the large document upload in Microsoft Graph API (link) and af

LINQ select column that contains some array element

I have a field "details" varchar(MAX) in my table with the detailed description of an item, I need to select the records that contain the keywords passed by the

ComboBox, How to give value

I'm trying to assign a value to My ComboBox with the name "tbYear", this value I want to assign comes from My API. I'm getting the value correctly, I just have

GetComponent(Type customType) behaving differently than GetComponent<customType>

I have this method 'SetStats' that's part of a class. public class HeroUnit: MonoBehaviour { public virtual void SetStats(Stats stats) => Stats = stats;

Why the result of Exists function use == and != is not opposite? [closed]

string input = "1234"; string[] array = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" }; bool in_N1 = Array.Exists(array, x => x == i

How to combine custom permission-based authorization with MicrosoftIdentity/MSAL in Hosted Blazor WebASM

As the title, i'm trying but still found no solution. This is flow: User <-> Blazor.Client <-> Blazor.Server <-> External APIs. Blazor.Client: