Category "c++sharp"

mXparser's iff() conditional does not support equality test

I'm using the Java/.NET symbolic math library mXparser (5.0.2) to support user-provided math expressions in my app. Problem I found that the conditional clause

DataGrid not showing in .Droid (Uno-platform)

I made DataGrid that correctly displays data in .Wasm and .UWP, but on .Droid app it doesn't show anything (header or body). The calling to my API works and dat

How do I make a .NET Core 6 Top-Level statement template async?

I'm follwoing this guide: https://docs.microsoft.com/en-us/dotnet/core/extensions/configuration and I don't understand how to make my application work as an asy

EvoPdf.HtmlToPdf isn't rendering foreign languages (Hindi, Bengali)

I'm using EvoPdf.HtmlToPdf with paid license, however, I have noticed that when I'm converting HTML to PDF and downloading, some languages like Hindi, Bengali a

How to check if a filesystem supports hard links in linux?

What's going on here is I have a construct that goes something like this: if (link(source, intermediate)) { if (pathconf(dirname(source), _PC_LI

Problem with transform.rotation in unity c#

I`ve been doing a game and i got a problem , i tried to do a jumping cube but if you jump a lot the cube can rotate , i tried to restrict rotation by using: //

Why is sqlconnection.open nosing around in my config file?

Today I thought, Oh, I'll just add some SQL logging to a C# SFTP custom (console) program we have. I didn't write it, and it has perhaps an odd configuration fi

How do I make my C# code for Unity in Visual Studio look/work like in the tutorial (picture)

I'm trying to make a mobile game with Playfab and Unity. It's my first time using Unity and Visual Studio. Usually I'm only using VS Code. The code is working

How can I change IsInDesignMode to use it in Microsoft.Toolkit.MVVM?

This time I must be migrate MVVMLight and replace it with Microsoft.Toolkit.MVVM. In the documentation is written there's no direct replacement for IsInDesignMo

How to Secure Cookie in MVC

I have an application in MVC which is consuming some third party APIs. While running application on server I am getting below 4 cookies in browser and one of th

How to translate c# Task to Unity coroutine (OnCollisionEnter2D)

help to translate this code in coroutine. Im making game in unity and need to creat coroutine for it. I try made it, but it doesnt works. private void

Linear search algorithm with generic methods

I have a problem with code. I receive an error CS0311: The type 'object' cannot be used as type parameter 'T' in the generic type or method 'GenericMethods.sear

INT16 - Big Endian (AB) convert to hex and ascii

I want to convert hex and ascii from INT16 - Big Endian (AB) data type. But I don't know how to continue. I want to do similar work in extension. I want to get

How to spawn only one object in Unity AR foundation

I new for Unity and C# can someone help me? I'm creating a kids game and they tend to tap on the screen accidentally and as they look around but then they spawn

Rijndael Encryption/Decryption C# to PHP conversion

I have an encryption decryption class written in C# and i need help writing same algorithm in PHP to obtain same output result, any help finding a reliable solu

How to insert multiple JSON rows into a T-SQL table

I am trying to insert following JSON document into T-SQL: { "GLDETAIL": { "RECORDNO": "264378-1756289-919567--accrual", "BATCH_DATE": "02/01/2

How to make MSTest grab all console output from unit test? Output behind WebHost.CreateDefaultBuilder() goes missing (VS2022, .NET 6, MSTest 2.2.10)

I'm creating an integration test for a Web API, so I'm starting an entire application in a unit test using WebHost.CreateDefaultBuilder() and the usual setup bi

ParquetSharp's UTC adjustment

I am trying to use the ParquetSharp library (https://github.com/G-Research/ParquetSharp) to write some Parquet files from an SQL server database. As the origina

pls HELP ME HELP ME HELP ME HELP ME [closed]

i was making a game in unity and i got this error: Assets\PlayerController.cs(37,21): error CS0120: An object reference is required for the no

C# Encode Bitmap to DDS (DXT1, DXT3, DXT5)

I have a simple Bitmap in my app. I need to save it as DDS (Direct Draw Surface) not like a simple image with .dds extension, but need to encode pixel data and