Category "c++sharp"

Json.NET in Unity throwing 'The type or namespace `Newtonsoft` could not be found'

I used nuget to install Json.NET into my Unity project but the issue is when I launch it throws The type or namespace 'Newtonsoft' could not be found. Are you m

Json.NET in Unity throwing 'The type or namespace `Newtonsoft` could not be found'

I used nuget to install Json.NET into my Unity project but the issue is when I launch it throws The type or namespace 'Newtonsoft' could not be found. Are you m

hangfire Could not load file or assembly 'DynamicProxyGenAssembly2

I have setup Hangfire as below: var t = IocManager.Resolve<TestJob>(); RecurringJob.AddOrUpdate("sendDailyEmail",() => t.sendEmail(), Cron.Daily);

How to convert Java "Arrays.copyOfRange" function to C#?

Working on MergeSort in Java: public void mergeSort(int[] A) { if (A.length > 1) { int q = A.length/2; int[] leftArray = Arrays.

How to convert Java "Arrays.copyOfRange" function to C#?

Working on MergeSort in Java: public void mergeSort(int[] A) { if (A.length > 1) { int q = A.length/2; int[] leftArray = Arrays.

2d array index out of range exception

As soon as i enter the while loop the program throws Index out of range exception, without getting rows and columns value. getint is a method to get user input

Copying vs creating a file using C#

We have a web service that creates a folder structure for our projects and as part of the this I need to create a text file that has the path to the project. I'

I am getting 'System.Web.UI.WebControls.TextBox' into sql table instead of getting actual data entered in text boxes

Can someone please help me figure out why I am getting 'System.Web.UI.WebControls.TextBox' in MySQL database instead of actual values being entered in the text

Using OLEDB for uploading file with Excel 2016

my application basically accepts an excel file and uploads data to my database which used to work perfect with Excel 2010 with the below code. However we update

Sending sms to mobile phone in C#.net windows application with MTS modem

This is the code the message box showing ("message sent successfully"). But I didn't get the message to my phone that I used. SerialPort sp = new SerialPort();

Password validation REGEX to disallow whitespaces

Password cannot contain white spaces must contain at least one numeric char must contain 1 capital letter and be at least 8 characters in length, max 15 this is

How do I define the SignedOut page in Microsoft.Identity.Web?

I'm successfully signing in and out using Azure AD B2C in a Blazor Server app, but it's not clear to me the proper way to define the SignedOut page. This questi

Block email sender

Is there anyway you can create a code, when you click a button (I've already created this) it will take the selected email and block the sender which will delet

prevent escape string c#

I have my sql query which displays fields using "where" from a variable. I have my variable passed from a function string empCode which value is "!\\(" Here's

Restrict user-defined T-SQL query to SELECT type only

I am working on an app that is providing a way for an user to define a SQL query and run it against the database. The only purpose of the query is to create a d

Breakpoints set but not yet bound in Visual Studio

Running Visual Studio Community 2017. Created a WebAPI project, have a controller class in there, with some basic stuff, but when I go to run in debug mode, I g

Executing Command line .exe with parameters in C#

I'm trying to execute a command line program with parameters from C#. I would have imagined that standing this up and making this happen would be trivial in C#

Editing an appointment programmatically

I'm using Microsoft.Office.Interop.Outlook to load appointments into the interface and to edit appointments . I can load appointments completely fine, editing d

Unity input is not working, how to fix it?

this is my script: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { // Start is called

If async-await doesn't create any additional threads, then how does it make applications responsive?

Time and time again, I see it said that using async-await doesn't create any additional threads. That doesn't make sense because the only ways that a computer c