Category "c++sharp"

Casting an object within a MongoDB document to date time within a filter definition builder

I am hoping someone can help me as I am new to Mongo DB or point me to a work around, I have a property within a Mongo DB document which is of type object, but

Error in selenium c# witch WebDriverException

OpenQA.Selenium.WebDriverException: "The HTTP request to the remote WebDriver server for URL http://localhost:61601/session/bf47076dd5340edf30b904f946dae6f2/url

Can't see anything on the Xamarin ListView (DataBinding - MVVM)

I tried to use some DataBindings on the listview but nothing is listed. Model.cs public class Post { // Columns inside of the Database table [PrimaryKe

Weird Raycast Behavior with Unity 2D in C#

I'm having problems where a raycast2D I am doing in Unity for casting spells in a game is behaving weirdly. It doesn't always go in the direction it is supposed

c# - clone array of list of objects not working [duplicate]

I'm trying to clone array of list of objects. the clone modified when the original list modified (one of the properties of Page object). how d

i am receiving an error while returning `<IEnumerable<RiskValue>`.. ASP.NET [closed]

var result = JsonConvert.DeserializeObject<Risks>(jsonData); var finalResult = result.Value.Where(x => x.ID == 5).ToList

My C# WPF webscraper returns error when more than one result is found

I am working on a WPF XAML application that scrapes certain websites for products. I have the search part working and it finds what I'm looking for. But as soon

Performance of c# FileStream.Seek vs FileStream.ReadBytes. Why is the latter faster?

In my application I need to frequently move the position pointer of a file stream forward a small number of bytes. Experimentation with using FileStream.ReadByt

Is there any way to get Graph API event reminder through subscription?

We have multiple reminders like 5 minutes , 15 minutes and 30 minutes. We store them in our own database and send maximum time reminder with graph API create ev

Develop C# on Mac OS X Lion [closed]

Faced with the problem of programming on the Mac on the old version of the operating system Lion 10.7.5 in C#. Can anyone recommend an IDE tha

JetStream: How to make Push Subscription with Durable consumer? (i get "No interest")

I try to make Durable and Delivery consumer, but i get "No Interest" as result. It is "Active" When i create PushSubscribeOptions like this: PushSubscribeOption

How to translate this SQL into LINQ, with correlated subquery single table

The raw SQL uses correlated subquery for single table, any possibility to translate this with single LINQ Query? SELECT * From dbo.Products AS P1 WHERE SalePric

Group elements of the data set if they are next to each other with LINQ

I have a data set (ex. 1, 1, 4, 6, 3, 3, 1, 2, 2, 2, 6, 6, 6, 7) and I want to group items of the same value but only if they are next to each other minimum 3 t

How can i set environment variable for ffmpeg.exe using uwp c# code?

set environment variable for ffmpeg.exe using code in C# UWP?

using Nunit I want to use the Retry Attribute to help my parallel testing in BrowserStack

I am attempting to add the retry Attribute under the Test Fixture in Nunit but it does not appear to work. Can anyone show me how to add this as a try catch? Th

How to call a method on application crash before objects in DI container are disposed? c#

I have a console application that is running in Kubernetes. I want it to send an event through rabbit when it crashes on unhandled exception. Here is simplifie

Logging using Serilog to SQLite sink

I'm not able to make SeriLog work with SQLite sink. My project setup is as follows: Packages I have installed: My SQLite database: My appsettings.json file

Cancellation doesn't go as expected

The while loop currently blocks the thread as it retries forever until the connection is established. I expect it to retry forever but it shouldn't block the th

Connecting to Dynamics Dataverse from Azure Web App - getting "object not set to an instance of an object"

We have an API, written in C# .NET Framework that connects to the OrganizationService and the OrganizationServiceContext of our Dynamics instance. We are gettin

C# WinForms | Can I detect specific Sounds with a Microphone Input and let my program detect that specific sound and respond to it?

I'm currently trying to make a C# programm that simulates a Dial-Up Connection. So this what the programm should do: When I play a DTMF Tone like 212 5678912 or