cdbus
cdbus
CC#
Created by cdbus on 1/30/2023 in #help
❔ Attach to `w3wp.exe` process on Windows 11 ARM64 VM
Hello, I'm trying to run and debug a .NET 4.8 project running on IIS, on a Windows 11 ARM64 instance. I'm able to build the project, create an IIS site and generally run the application. However, previously I was able to debug the IIS application by going to Tools > Attach to Process and selecting the running w3wp.exe - which is not possible when I do this from an ARM vm. Has anybody had success with this scenario before I move on?
6 replies
CC#
Created by cdbus on 1/5/2023 in #help
❔ ✅ Get name of assigned property in an Expression
I am (partially for fun) writing the following method:
void BulkMerge<T, TConstraint>(
IEnumerable<T> entities,
Expression<Func<T, TConstraint>> constraintSelector
) {
//
}
void BulkMerge<T, TConstraint>(
IEnumerable<T> entities,
Expression<Func<T, TConstraint>> constraintSelector
) {
//
}
Here is how I intend to call it:
BulkMerge(accounts, (a) => new { AccountID = a.Id });
BulkMerge(accounts, (a) => new { AccountID = a.Id });
I'd like to parse the Expression argument above such that I have
var maps = constraintSelector.ExtractMaps();
var maps = constraintSelector.ExtractMaps();
Where ExtractMaps is an extension method that returns this structure (denoted in JSON for clarity)
[ { "Source": "Id", "Destination", "AccountID" } ]
[ { "Source": "Id", "Destination", "AccountID" } ]
Is this possible in C#?
9 replies