Category "c++sharp"

How to change the morphTime at runtime?

I copied the whole switch/case part to the Update to be able to change the modes also at runtime. but I want also to be able to change the morphTime at runtime

Error 400 - Bad Request an Creating user with Microsoft Graph

I am trying to create a new user in my tenant using Microsoft Graph (v1.0) with help of the Microsoft doc. When I create my user, I always get an error 400 bad

c# two parameters in one parameter in a method

I would like to make one method like this: public void SomeMethod(int myInt,<float or double or MyClass> myFloatorDoubleorMyClass) { } And not only with

Selenium ChromeDriver 101.0.4951.41 cannot start DevTools

Hi. I tried upgrade my chromedriver to 101.0.4951.41 today and it sudden keep prompt this error to me. Anything I missed or what I should add for new version?

Why use AddScoped() instead of AddSingleton()?

Why I should use AddScoped() for my repositories or services? Why not AddSingleton()? I know about differences between them, but dont understand why I shouldn't

how to get Json values which are not in a class using C#?

I have the following problem: I am a C# beginner and I want to create a weather app using the OpenWeatherApi. The response of the api looks like this (it´

Programmatic control of virtual desktops in Windows 10

I love that Windows 10 now has support for virtual desktops built in, but I have some features that I'd like to add/modify (e.g., force a window to appear on al

CSHTML WYSIWYG editor/previewer

I wanted to create an Asp.net Application, but I can't find a WYSIWYG editor in Visual Studio or even a Previewer, is the only way to see what your page looks l

How to convert camel case to snake case with two capitals next to each other

I am trying to convert camel case to snake case. Like this: "LiveKarma" -> "live_karma" "youGO" -> "you_g_o" I cannot seem to get the second example worki

How do I get back the key for a newly inserted record using Dapper.Contrib?

I have code like this: db.Insert(myObject); The key for the type myObject is of type System.Guid which is auto generated by RDBMS. I then want to insert child

StateHasChanged for specific component instead rerender all components in a page

I am using multiple components is my application each are rendered in conditional manner. Is there any possibilities to re-render a specific component alone? My

Replace Text into an existing PDF document in a specific positions in JavaScript & Asp.net MVC?

I have an existing 20-page pdf file. I need to extract data from our database and incorporate it into a pdf document for specific positions. I did research on G

Posting form file to ASP .NET Core API using AWS SDK Test Lambda Context and APIGatewayProxyRequest

I have an ASP .NET Core API endpoint which accepts the below model: public class FileUploadModel { public IFormFile? File { get; set; } public DateTime?

Using SqlConnection in Xamarin.Forms?

Can I use SqlConnection in Xamarin.Forms? I tend to use this in Windows and Web applications developed in Visual Studio, but I don't know how it would work in

System.NotSupportedException: Character set 'utf8mb3' is not supported by .Net Framework

I am trying to run a server with a MySQL Database, however I keep getting this huge error and I am not sure why. [21:15:49,107] Server Properties Lookup: Error

EntityFramework Core dbContext doesn't recognize SaveChanges() [closed]

I am working on .NET CORE 6 App along with Entity Framework CORE. I have created DbContext class that I am reference in my abstract BaseComman

Firebase storage requires twice during upload

I found that storage requires twice during uploading a single file Like this: Uploading : 0 out of 19160 Uploading : 19160 out of 19160 Uploading : 19160 out of

No suitable constructor found for entity type string

Yesterday I came her with a similar question about my own made entity type that head some errors. I fixed up these errors but now it throws one on entity type s

Backing up SQLite .db file on ASP .NET Core web server

I'm running a .NET Core wep app. It uses Entity Framework for SQLite. Thus, a .db file is generated. From time to time I want to back up this .db file. Can I d

Unable to load resource (.resx) file because it is not trusted

I am facing an issue while building windows source in Visual studio 2017. Showing the error message mentioned in the title. Anyone have any idea about this err