Category "c++sharp"

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

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