Relative Content

Tag Archive for c#.net.net-core

C# delegate assignment inside ref struct

I’m trying to conditionally define a delegate inside of a ref struct based on some condition. This works inside of a regular struct and a class, but for some reason, a ref struct doesn’t allow it.

C# delegate assignment inside ref struct

I’m trying to conditionally define a delegate inside of a ref struct based on some condition. This works inside of a regular struct and a class, but for some reason, a ref struct doesn’t allow it.

C# delegate assignment inside ref struct

I’m trying to conditionally define a delegate inside of a ref struct based on some condition. This works inside of a regular struct and a class, but for some reason, a ref struct doesn’t allow it.

C# delegate assignment inside ref struct

I’m trying to conditionally define a delegate inside of a ref struct based on some condition. This works inside of a regular struct and a class, but for some reason, a ref struct doesn’t allow it.

How to reliably map window titles to executable names in C#?

I am trying to map the window titles of running applications to their corresponding executable names in C#. Currently, I am using the GetWindowText() method to retrieve the window title and manually mapping the title to the executable name.
Here’s my current implementation:

Webhook for Runa Playground API

I am migrating from connect Runa API to Runa API.
To test its implementation on playground I want to add a webhook with Runa playground API so that after processing the order the user should be notified in both success and failure. But I am unable to do this. How can I add Webhook for Runa playground API?

VS build error, Could not find type ‘System.Resources.SatelliteContractVersionAttribute’ in assembly System.Runtime.dll

I am in the process of upgrading a C# plugin library from .net framework 4.8 to .net 8.0 targeting windows. However for compatibility I also want to continue compiling for older versions using framework 4.8 I have done this with another project successfully, using the in-place upgrade built into Visual Studio and hand editing the csproj as necessary. On the second project that I am upgrading I received following error when compiling.