Category "c++sharp"

How to check if string contains ANY values in the given array AND NOT others values

I wanna make simple string calculator, my point is to check that user typed in any values from the array and not others. string[] occurences = new string[] { "1

Unregister Events MultiCastDelegate Performance Problem

I have a problem: Our application has grown so far and therefore there is an object with many many EventHandlers. The point here is that removing them takes far

Same password hash not matching

I am trying to create and test my api for login using C#. Below is the major part of the code: private static void CreatePasswordHash(string password, out byte[

Physics.Raycast Grounddrag system not working

I'm trying to implement a unity FPS Rigid body movement controller into my Unity 3d project. However I cannot seem to add drag to my player. I've been trying to

What does "object is enumerated" mean in C#?

I've been reading lately articles and documentation about deferred execution, LINQ, querying in general etc. and the phrase "object is enumerated" came up quite

EF6 allow read but disable insert/update/delete during transaction

I am doing some "sync" between different platform. During this sync I try to add/update/remove records. For it I'm wrapping all functionality in TransactionScop

Calculate number of pages in docs file by dot net and C# and Syncfusion.DocIO.Net.Core Package

I have a .net Core 3.1 webapi. I want to get the number of pages are in docs and doc file. Am using the Syncfusion.DocIO.Net.Core package to perform operation

.NET CORE, how to get file location for an exception in a web app, in middleware?

I've seen this question: How can I get the line number and file name from an exception in net Core? And tried the code, but it always says line 0 and no file na

How to include .aspx and its content into a .cshtml view?

I'm kinda new on .net and I ignored the existence of Controllers, Routing and Views and I already created my pages and their code behind on .aspx files and I wa

Fill the DataSource of a DataGridView with existing Columns

Is there a way to fill the DataSource of a DataGridView using the existing Columns? I'm trying to set a DataSource to my DataGridView; every time I set my DataS

C# ODBC driver with DBF database in parallel not working as intended

Hi everyone this is my last resort, i think I'm getting something wrong but can't get unstuck I was trying to load some old DBF files at startup to create my da

Why do I get "The response ended prematurely" when using the HttpClient in C#?

My first code of HTTP Client in .Net Core. The server is running on my PC as well, so I want to send it to localhost. I've added printing of the inner exception

Workaround to retreive E-Mails using Uipath

Uipath studio: 2021.10.3 Package Uipath.Mail.Activities: 1.3.0 Hi everyone, My objective is to retrieve E-Mails from a particular E-Mail Address throught Uipath

Acumatica Customization - How to remove anonymous delegate from PXGraph.RowInsertingEvents Collection?

I‘m working on customization that involves adding extra Sales Person transactions when Cancelling/Correcting an Invoice. As part of the development effort

Why I am Getting Same Error While Starting Application ? "InvalidOperationException: Unable to resolve service"

Error => An unhandled exception occurred while processing the request. InvalidOperationException: Unable to resolve service for type 'Business_Logic_Layer.Ho

Intellisense not working in VSCode - OmniSharp Error

Intellisense has stopped working for me and whenever I run VSCode this error comes up in the OmniSharp Log. [warn]: OmniSharp.MSBuild.ProjectManager Fai

Get/set the resolution of an image file using C# net5.0 but without System.Drawing.Common?

Using System.Drawing, it is easy to get the HorizontalResolution and VerticalResolution of an image file. In .NET 6, System.Drawing.common will be disabled (by

C# Utilizing cancellation tokens for each Task created

I have a task method that generates temperature profiles in my MainWindow but is called in another form when the user inputs data for a lot (an item produced) i

How can I tell if IRegistrationBuilder.EnableInterfaceInterceptors() has already been called?

I'm using Autofac.Extras.DynamicProxy to write a couple of IInterceptors. They can be used individually, or both together. I want consumers of these interceptor

how to deserialize xml arrayItems in enum if there are unrecognized elements

The goal is to deserialize xml-arrayitems into my specific enum. using System.Xml.Serialization; public enum Example { [XmlEnum(Name = "Ex1")] Ex1,