Category "c++sharp"

Character is jittering after adding falling function

Let me just preface my question by saying I'm quite new to unity and programming as a whole. However I've been experimenting with some movement and after adding

How to include externel user files into UWP side-loading package?

Say I use some .json files to descript some object data which effect to the program's behavior, I hope to use these files in the following scenarios The default

Call async inside public static bool

I wrote code about the settings page that uses static bool then I need to Check If the public static bool changed or not In the form that I needed to call (Form

Writing Escape Characters in Plain Text with XML

I'm having an issue parsing some XML with C#. To give an example, I'm taking some XML that contains the following tag: <Message>Hello, my name is&#xA;

Maui RC1 - "System.NotSupportedException: Must call AddTerm AddSeparator in that order"

I installed the last update for Maui (https://github.com/dotnet/maui). When I add an image, it makes an error: "error MAUI0000: System.NotSupportedException: Mu

How do you initialize reference type class properties in a nullable context in Unity?

As you are supposed to use the Start() or Awake() methods instead of the class constructors in Unity to initialize your class properties, VisualStudio complains

Fetching data in level 3 of self-referencing / parent-child relationship

I am programming a multilevel menu / submenu in ASP.NET MVC. I have this table: Id Name ParentId ---------------------------------- 1

Mongodb aggregate group by then conditional sum, or, filter, push, using c#

Can someone please help to convert this query to C# .NET core? db.getCollection("accout").aggregate().match({ $or: [{"clientnum1": "xxxx"},{ "clientnum2": ""}],

Is there a way of comparing 2 variables in a grid like way instead of nested if statements?

I am dealing with a prisoners paradox type problem where there are multiple combinations (2x2 -> 4) and each has a different result. Is there a good way of l

EF Core: Union vs LinqKit for dynamic linq to SQL

I was always using the LinqKit to implement dynamic and cooperative predicates. However, the last time I saw a colleague use the Union to combine dynamic querie

How to group and Throttle Object by ID Rx

I have incoming objects of the same type, but if An Object property IsThrottlable is set to false regardless of the ID I DON'T want to throttle it but if IsThro

How to use DBContextFactory in Generic Repository

My current application has three layers: Web, Infrastructure and Core. Generic Repository is in Infrasturcture layer and works fine with DBContext. After I swit

How to access a specific cell in a DataGridViewRow?

How can I access a specific cell by index in a DataGridViewRow? Regular DataGridView has Rows parameter, DataGridViewRow doesn't have it var GridRow = new DataG

Insert data in a table from another model In .NET Core MVC

I'm trying to build a quiz application and i want to insert the user's answers after the quiz is submitted. this is my question model: public class Question {

Open type font collections are causing errors with PdfPrintingCore "Font has no usable platform or encoding ID. It cannot be used with PDFEdit."

When printing any text in font type Cambria (or another .ttc font type) on Windows I get the following error message: Font has no usable platform or encoding ID

Is there a way to build custom expression in SqlKata for the Select/Order clause

I wanted to pass custom expression to SqlKata The expected output is: SELECT DISTINCT(Column1 + ' ' + Column2) FROM Table1 ORDER BY Column1 + ' ' + Column2

Instantiating an object to the position of another vector, hoping to change Y-axis in the code

I have enemies spawn by instantiating them and having them follow a straight path along the X-axis. When instantiated, I want some variability in their height t

Dynamically generate lambda expression

I have the following class: public class Movie { public int MovieId { get; set; } public string Title { get; set; } } I want to create a lambda express

Kafaka Subscriber not receiving the messages

I am writing sample applications in .Net core to interact with Kafka. I have downloaded Kafka and Zookeeper official docker images to my machine. I am using Con

Use Excel File in C# Microsoft botframework SDK

How can I read local excel data on my C# bot using bot framework SDK. I can't find any documentation for it. Can anyone help?