Nullable Reference type
I’m working with a code base that is currently using C# version 7.3 I am trying to set a nullable reference type however it throws an error and says this is not supported please upgrade to C# 8.
Read and Write to the same image file C#
I’m trying to read/write the same image file’s stream. The image file read is working fine but When I writes the image file successfully and then open the image, It shows “It appears that we don’t support this file format.”
cannot apply indexing with [] to an expression of type object
I’m working on API on .net windows form i copied the code from the website provided and i found error
say “cannot apply indexing with [] to an expression of type ‘object’ ” how to fix this
this my code
How to Develop an Email Logging Feature in .NET to Monitor Sent Emails, Attachments, and Browser/Outlook Activities
I am developing a system to monitor and log email activities similar to Teramind’s functionality. The goal is to create a feature that logs details about emails sent through both web browsers (including incognito mode) and Outlook. Specifically, I want to capture the following information:
Export to excel with dynamic columns & values in .net C#
I have a dynamic grid in kendo the column names and column number changes will be different based on conditions.I am not able to export since it is a dynamic list
I have provided the code below
Newtonsoft.Json.JsonSerializationException: ‘Self referencing loop detected for property ‘Task’ with type
I have an error coming on the post async method:
c# winformchart symmetric majorgrid
I need to display some graphs that have x=0 about in the middle. I would like to align the major gridlines accordingly, e.g. that one of those gridline is at exactly x=0, instead of the default where the grid starts at the first data point.
I have already tried all kinds of combinations of setting the following, but I could get the major grid to move.
Inheriting IEntity and IEquatable<IEntity> causing warnings
I have a method that processes a list of entities and checks if they are valid or not. Invalid entities are added to a HashSet. Later, I attempt to filter out these invalid entities from the original list, but the filtering doesn’t work correctly — invalid entities are still present in the final list.
How to check the and notify if date is already booked in a C# .NET event management system?
Currently I am working on a semester project which is a Event Management System using Windows Forms Application (C# .NET). But I got a problem that when a new customer wants to book an event on a specific date, it’s necessary to check the if the date is already taken by a another customer. And if it’s taken I want to display a message to the Admin that the date is unavailable. Since all the booking data are storing in a Database (Microsoft SQL server).
C# TAP Confusion
I have 2 async functions, X and Y. Y is only called by X, using like Task.Run( () => Y(some params) ). X creates a cancellation token source and passes it as a parameter to Y, and either X or Y can cancel it, but when Y cancels it, I want Y to wait for X to finish before doing something else. If there was only going to be one X running at a time, I could have a member variable like Task _xTask, and then Y could do await _xTask. But that isn’t the case, and I don’t know how to pass the Task of X to X as a parameter, or determine it from within X. Instead, I could do something like have a Dictionary<Guid, Task>, create a Guid before I create the X Task, and pass that to X, which would pass it to Y, which would grab X’s Task out of that dictionary and await on it. I’m hoping someone has a better idea.