Category "c++sharp"

VS Reversing FatalExecutionEngineError address

I'm working on very large piece of software that dynamically loads and uses a handful of dlls at runtime. VS 2022 compiles and runs this software without any is

How to scroll to an item using MVVM Prism and ReactiveCommand in ViewModel?

Xamarin Forms 4.0 recently released a CollectionView that lets us scroll to a specific item in a collectionView. I have a collection view with 10 items in it t

Play video using DirectX in C# WinForm

I want to achieve almost something similar here. I want a control that supports both images or video. This will play for some duration. I am able to show the v

Get navigation properties in Entity Framework Core

In EF6, this method works to retrieve an entity's navigation properties: private List<PropertyInfo> GetNavigationProperties<T>(DbContext context) w

How to customize ASP.NET Identity Core Username to allow special characters and space

I have changed my Register Action Method to accept user Name instead of Email. if (ModelState.IsValid) { var user = new ApplicationUser { User

How can I access the Unity 'Light 2D (Script)' component via Script?

In my Unity 2D game, I have a character with a lightsource component 'Light 2D(Script)' from the Lightweight RP package. I want to change the intensity of the

CSC on macos does not list C# 9

I have updated to the latest .NET 5 SDK 5.0.101 but it seems the CSC compiler is unaware of the existence of C# 9. I have tried using C# 9 features (like init-s

Error: The provider is not compatible with the version of oracle

I have developed a .Net C# based website, which is dependent mostly on Oracle database. To access the DB I have been using Oracle ODAC 11G. (Oracle.DataAccess.d

ASP.NET Core Web API - 'IRuleBuilderInitial<CustomerTransactionRequestDto, decimal>' does not contain a definition for 'CustomCurrency'

Validation is done in ASP.NET Core-6 Web API using Fluent Validation. So, I have this code: Custom Validator: public static IRuleBuilder<T, string> Custom

MAPI Requests - Exchange Server (TCP/RPC) vs IMAP-Connection

I am currently developing an Outlook VSTO-AddIn using C#. I want to read certain attributes of each mailItem. (E.g. SenderName, SenderEmailAdress, etc. .. ) As

How to generate oauth_signature in C#

I'm trying to call an API which was associated with OAuth 1.0 version. From the postman wen I tried by passing the header param "Authorization" It's value is as

How do I reset the binding from my source (ViewModel) to the target (.xaml)

I have a ProfilePage.xaml containing some ImageButtons like these (six of them): <ImageButton x:Name="resultImage" Source="{Binding Profile.Images[0].Sou

UWP Xbox Live Leaderboards

I am trying to incorporate leaderboards into my UWP game. I am using C# and XAML to create my game. I have created a high score leaderboard and have pushed it w

C#: Problem receiving UDP packet from device connected via mobile hotspot

I'm having a problem with simple UDP packet receive from a device connected remotely via Windows mobile hotspot. The device (an esp32 wifi board) connects to th

How to overcome the IQueryable doesn't implement IAsyncQueryProvider while Mocking the FromSql() method?

I'm using the below link for mocking the FromSql method in x unit How could I Mock the FromSql() method? I'm getting the below error for the method which uses

C# streamwriter does not overwrite futher information [duplicate]

i'm working on a calculator project for my school. i have a problem with overwriting my operations to a text document, normally i should have

MSBuild ignoring /p:BuildProjectReferences=false on Azure build server

I've a solution with three projects in it: 2 C# WPF projects and 1 WIX project to create an installer. I've set up a build pipeline on Azure DevOps that referen

How to read an integer using console.readline()?

I'm a beginner who is learning .NET. I tried parsing my integer in console readline but it shows a format exception. My code: using System; namespace inputo

Export C# Project as .EXE file

I have a C# project in Visual Studio 2019 that I wish to export as a .EXE file. I have already run it in 'Release' Mode, but no .exe turns up in the 'bin' folde

Visual Studio Code doesn't format C# code

I created a new file, set the C# language, and wrote some code. Then I pressed Ctrl + Shift + F (or F1 → Format Document). And got I the error Sorry, b