Category "c++sharp"

Is there a way to list down only the custom dotnet templates installed?

dotnet new --list lists all the built-in and custom templates installed. But I want to list only the custom templates that I have created and installed. Is ther

LDAP Query not returning all queried attributes

Is there any reason why a LDAP query does not return all attributes passed in the request? My request looks like this: // assembling the attribute list var ldap

How to open SQLite DB created by one Xamarin Android app in another app?

I have a Xamarin Android app which creates SQLite DB. After reinstaling this app I am not able open the DB with a new version of the app. For the testing purpos

How to select multiple elements into array in Linq query?

Net core application. I have below query in my application var result = sourceProposal.Quotes .Where(x=>x.QuotationId == sourceQuoteId) .FirstO

IQueryable Result set not getting correct data

I have an object Student, which has a navigation property to Class: public class Student { public virtual List<Class> Classes {get; set;} } public cla

Cannot find type System.Windows.DependencyObject in module WindowsBase.dll

I'm using WinUI 3. I used the Project Reunion 0.5 (Blank App WinUI 3 in Desktop). I removed the x86 and arm64 architecture. As soon as I add the Microsoft.Ident

"Top-level statements must precede namespace and type declarations"

So I haven't been coding for long so I'm not so experienced, I recently ran into a problem on replit.com where the console would print out: error CS8803: Top-le

Change to array triggers change in other object

I am currently working on a chess game and I want to implement a Redo button. The way i am doing this is, that the I have a list of GameStateContainer class whi

Ocelot Aggregator doesn't work for post method

Good afternoon community. I present my case and then I ask the question. In ocelot.json I have the corresponding configuration to consume the microservice meth

How to return a random sentence in Twitch chat, using Streamer.bot?

This is a simple functionality I have in my chatbot, but I want to customize it a little bit. Right now, when a user types !lurk, it returns one message. I want

How to sort and remove duplicates from string Array without using the inbuilt function?

I want to remove duplicate string also sort the string array in C# I am reading text file which contains data like Blue, Green, Red, Green, Yellow so I am readi

Want to show/hide Div Query - JavaScript - based on what a sql query returns

My project is a MVC c# Asp.NET project. I want to check if an attachment has been loaded, if there is an attachment it shows the div that contains the attachmen

Outlook Add-in: Am I not aware of some basic, conceptual theories of C# programming?

Win 10 - VS 2019 - Office365 - Exchange Online My first post - woo hoo!!! (Although I have been lurking forever.) I am writing my first Outlook Add-in with my

Client HTTP/2 request on .Net Core 3.1 throw "HTTP/2 error code 'PROTOCOL_ERROR' (0x1)"

I've got a problem with HTTP/2 request by HttpClient to the external service by HTTPS on .Net Core 3.1 : var httpClient = new HttpClient(); var request = new Ht

NLog ApplicationInsights - Instrumentation Key from appsettings.json only loading for TelemetryClient

In my .NET 5 aspnetcore application, NLog is mostly working except for loading the Instrumentation Key from appsettings.json for the logger. It seems to be load

Are there specific issues with .NET Core apps and System.Reflection.Assembly.LoadFrom(...)?

I'm using a tool I wrote that makes a call to the following line in order to inspect a few things, including the assembly version: var assm = System.Reflection.

On DatatableJS server side, how to make a column's order not callback server?

I use datatablejs server-side in my MVC project. When I click to a column it sends the column name to server and I take the column name after all I order the ta

Big button in navigation view. WinUI / xaml

Does anyone know how to make a big button with subtext and a picture in a navigation panel (using xaml)? Like in the Windows 11 settings app. Like this...

How to merge two lists using LINQ Suming a especific field when the id matched

Considering I have 2 list (firstList and secondList), both with same properties, but with diffent values. I need the result merge both lists, but it must consi

How to view System.Diagnostics.Trace.WriteLine output in DbgView?

I have an ASP.net web-site hosted on IIS, and the code calls: System.Diagnostics.Trace.WriteLine("test"); Reminder: You use Trace, rather than Debug, because D