Category "c++sharp"

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:

List of objects to List of Lists in C#

I have a List of objects, say List<MyObject> = new List<MyObject>{object1, object2, ..., object10} Each object has property "Property1" which is a d

import google/protobuf/timestamp.proto was not found or had errors in windows

I am trying to generate C# code using .proto file, but getting error import google/protobuf/timestamp.proto was not found or had errors. windows syntax = "proto

How to insert properly into a many-to-many relationship?

When inserting data into a many-to-many relationship, should you insert to the join-table or to both original tables? My table models: public DbSet<User>

Find the coordinates returned by the server after send commands GPS Tracker (TK303 etc)

I sent commands to the server according to the following links and data was returned that I do not know how to find the coordinates. Link 1: GPS103 Tracker List

Empty Object when deserializing ViewPort object with ServiceStack

I'm having an issue since I migrated to the latest version of GoogleApi (by Vivet) After analyzing I have identified a problem with deserializing the ViewPort o

Storing numbers larger than Big integer C#

I am having a really hard time finding a way to store massive prime numbers in c#. I tried everything but nothing worked out for me. For example. How can I stor

Why is my UpdateFile getting a null in the response in google drive api v3 using c#?

I have an application that is written in C# so that it can be a stand-alone .exe with parameters passed in via cmd at runtime. I am trying to update a file in

How to get only one message from MQTT, when messages receiving in C#?

I developed simple IOT device using nodemcu module with 03 sensors. When device is connected, device sent sensor's data to mqtt broker as well. After I getting

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