Category "c++sharp"

Is there any possibility for document paragraph-level tagging and filtering, e.g. by VBA or C#?

The MS Word document has the ability to mark tags at the file level, which can be used from Windows Explorer to make it easier to search for files by document&r

Retrieving a value in one class that is set in another

I hope you are all doing well. I've been having a small issue in a task for university, I have a variable in a class named Alpha where I want the value to be ch

C# - Get all environment variables in sorted order

I'm trying to get a sorted list of all environment variables for logging purpose using System.Environment.GetEnvironmentVariables() which returns an IDictionary

Unity fails to build due to IL2CPP

I made a archive of Unity for New 3DS, trying to use it myself tho it appears to give these errors even tho i have IL2CPP installed SETUP: Unity - 5.6.5f1 (New3

error 1503 the service didn't respond to the start or control request in a timely fashion

I have installed a Windows Service for my project, this error pop out when I start the service. error 1503 the service didn't respond to the start or contro

log4net in .NET core 6

I used to use .NET core 5, but now I'm trying to use .NET core 6, it seems the old Startup.cs is mixed now with Program.cs. The thing is that I'm trying to add

Entity Framework Database First .Net Core

I have a .Net Standard 2.0 class library project and I want to add Entity Framework to it. I have added the Entity Framework Core package to the project but no

Blazor PWA Inputfile and send it to API Server

I am working on a system composed of a Blazor PWA app and an API Server. A user should be able to upload a file (a simple text file) through an InputFile compon

Constructing an OpenXmlElement from bitmap picture to append into a Run instance

I have the following code: string replaceValueString = parameterValue.ToString(); Run replaceRun = new Run(); replaceRun.Append(new Text(replaceValueString)); c

Image not Showing in crystal report viewer

I am using Crystal Report version 13.0.16.1954, In the data which is displayed in Crystal Report Viewer (Main report preview in visual studio 2013) having the i

''MS-ASPNETCORE-TOKEN' does not match the expected pairing token' when calling deployed .net core API on IIS

I am receiving the following exception in the logs and event viewer when calling an endpoint in a .Net core application (3.1): 'MS-ASPNETCORE-TOKEN' does not m

Including One Subitem From A List property while Making use of ThenInclude()

I have a function that's purpose is to pull an auction by its id from the data base and include it's highest bid and the highest bid's type. I was able to get t

Getting a system format exception at the int32.parse line

For some reason, I continue to get a system format exception at the int32.parse line. I don’t understand what I’m doing wrong. My assignment is to:

Diagonal difference of a nested List C#

I'm trying to get from a function the absolute difference of a nested list. I have a fixed matrix, and I would like to get the result when is not fixed. At the

Custom WinUI 3 C++/WinRT Control in C# WinUI project

I am trying to create WinUI C++/WinRT Component containing XAML control and iclude this custom control inside C# WinUI 3 project. Is this somehow possible? I ha

'The variable name '@' has already been declared. Variable names must be unique within a query batch or stored procedure.'

string subject= "INSERT INTO Subjects (ThesisNo, [Subject]) VALUES (2, @subject)"; SqlCommand commandSubject = new SqlCommand(subject,con); string temp

How to write an attribute for replacing sensitive data on serialization using System.Text.Json

I am logging my parameter models on console. In there I don't want to display the user password on login/register raw in logs, I want *. My limitation is that I

How to use .NET reflection to check for nullable reference type

C# 8.0 introduces nullable reference types. Here's a simple class with a nullable property: public class Foo { public String? Bar { get; set; } } Is ther

Write List<double> to Json array without indentation using System.Text.Json

NB: I am using System.Text.Json not JSON.NET for which there is similar question that has been answered. I need the same answer but for System.Text.Json. I wou

delete user from zk attendance device using c# api

I have set of ZK attendance device that using static IP address. I'm enrolling users to this machines using zkmkeeper.dll in C#. now i want to delete old users