Category "c++sharp"

Molecular MC simulation is not equilibrating

Suppose, a polymer has N monomers in its chain. I want to simulate its movement using the bead-spring model. However, there was no periodic boundary condition a

Backingfield is null in EF Core 3.1 , Lazy loading enabled

I am using Lazy Loading in EF core 3.1 and when i try to get the navigation data,it doesn't load. public class Template { private readonly List<Spec>

Convert a short DateTime string with date and time to DateTime

Having trouble with my Android project here trying to convert a string of DateTime into an actual DateTime object. here's the code I wrote: string strDateTime =

Converting SQL Server DataRequest class to NpgSQL

Trying to convert a SQL Server DataRequest class for use with PostgreSQL. Stuck on the DBTypes in this code. Can anyone give me a hand in this conversion? /// &

Non-nullable enum as generic parameter [duplicate]

I am trying to implement this helper function in C# 7.3: public static T? ToEnum<T>(this string enumName) where T : Enum =>

Addig User And Role to my UserRole table - Never used column name is missing

I am trying to add Role to my User and store the UserID and the RoleID in the UsersRoles table. var userRole = await _roleManager.FindByNameAsyn

NUKE Build: Could not find a suitable MSBuild instance (Visual Studio 2022)

After upgrade Visual Studio 2019 to 2022, I got the following error when I try to build the project with NUKE Build (Debug/Release): ╬═══

RestSharp baseUrl with a space

I google it and I pass hours try figure how to do it and I can't figure: I try get Response from web Api with RestSharp v107 in .net 5 Is works well when I do t

Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware: Error: 'MS-ASPNETCORE-TOKEN' does not match the expected pairing token, request rejected

I am receiving this error, Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware: Error: 'MS-ASPNETCORE-TOKEN' does not match the expected pairing token, req

Why does this service return null when return value is not null?

Not sure why this is happening. In the SaveRole() method when I try to hover over and see the value when debugging this line always shows null on the apiRespons

Is C# System.Thread using the Win32 API?

Is the C# Mulithreading with System.Thread using the Win32 API or how is System.Thread working?

Problem with importing users using library WTelegramClient

Follow this link: https://github.com/wiz0u/WTelegramClient , downloaded the project: wtelgramclienttestwf. On the main form, I added a ordinary button with a de

Use .Net framework 4.7.2 in .net 6 application

I am trying to find out if it is possible to use a .Net Framework 4.7.2 assembly in another .Net 6 libraries or .Net 6 application. I tried this with some sampl

M2Mqtt in C# is not connected, doesn't give data

I have a project creating a websocket client side (Subscriber) to a MQTT publisher. I am quite new to C# and MQTT protocol. I follow some youtube video to make

C# and MongoDB - Returning values from an object

I'm hoping someone can help: I have MongoDB collection for a User which has an Array called Reports which holds objects with IDs. I can retrieve the IDs but I'm

How to register SNS topic to bounce (or complaint) email notifications with AWS CDK C#?

I have SES 'verified identity' email, that sends emails. Now using CDK I'm creating SNS topic and Lambda to handle bounce and complaint emails sent by that veri

dotNet Core 5 API Service adds objects to list but result has multiple copies of the last item

dotNet Core 5 C# Web API project, Service class adds objects (based on a viewmodel) to a list. Debugging shows all data correct as the object is built and adde

ASP.NET EF Core Database update on Mac using docker image Azure Sql Edge

I am new to mac and got Azure Sql Edge running using docker image. This is the command I ran to run the image. docker run -d --name SQLServerImg -e ACCEPT_EULA=

How to create a void method that outputs an integer and have the method divide the data passed to it by 2?

I'm really brand new at this and still learning C#. I've had a hard time trying to look for a good example to the assignment I'm working on. So you can see exac

Why is SetActive not working in my script?

A new problem has just appeared in my code. In OnTriggerEnter i'm testing if the player collides with the obstacle. When I tell the script to display a message