Questions tagged [c#]
C# (pronounced "see sharp") is a high level, statically typed, multi-paradigm programming language developed by Microsoft. C# code usually targets Microsoft's .NET family of tools and run-times, which include the .NET Framework, .NET Core and Xamarin among others. Use this tag for questions about code written in C# or C#'s formal specification.
1,472,906
questions
0
votes
0answers
6 views
Eventcallback with dynamic change class?
I have some circumstates, when i have some list with classes take example like this List<Crews> and List<CrewsOnLeave>, and i made some component where i will be using the logic there and ...
0
votes
0answers
12 views
IQueryable<T>.Contains Expression Tree with Expression parameter
I want to implement custom .Contains() method with the following syntax:
static IQueryable<T> IsContainedBy<T, K>(this IQueryable<T> source, List<K> items, Expression<Func&...
0
votes
0answers
12 views
How to properly use array Contains() on an Array Type DataColumn
I'm trying to match a string inside a DataRow that holds a string array.
I was able to achieve that once the column type was only string, but now it's a string array per row.
The DataTable is a ...
0
votes
0answers
11 views
Player Jiggles When Running Into Object
I've been trying to fix this player collision script that I have but I can't figure out why. It's supposed to stop the player from running through walls, but when my player runs up against a wall, it ...
0
votes
1answer
11 views
System.ArgumentNullException: 'Value cannot be null. (Parameter 'configure')'
I'm getting an exception while trying to run the .net 3.1 application.
public class Program
{
public static void Main(string[] args)
{
var host = CreateWebHostBuilder(args).Build(); --&...
0
votes
0answers
10 views
Reading customer mailboxes using msgraph
I need to read messages in selectable customer outlook folders using the MSGraph API only. Customers provide the username/password credentials for the Outlook user. The reading will be done from a ...
2
votes
0answers
19 views
C# claims my SQLite table doesn't exist but it does
I'm trying to read a table I created with DB Browser for SQLite, but there's a runtime error claiming the database doesn't have the table. But it does! I created it and I can see it in DB Browser.
...
0
votes
0answers
10 views
C# Visual Studio 2019 red squigglies for syntax error not visible when “Open a local folder” file is opened
I've found that if I open the same C# file in Visual Studio 2019 v16.9.3 in different ways, I can get the red squigglies in the text editor or not.
I am following a tutorial (PluralSight, C# ...
0
votes
0answers
10 views
.Net Core 3.1 Worker Service, HTTP call fails when running with Docker
I am trying to develop my first Docker-enabled .Net Core 3.1 Worker Service. I am using the template for this in Visual Studio 2019. When debugging, I can run the code either as a console app, or as a ...
0
votes
2answers
12 views
Remove Entry Text at first click
I have a entry/Textbox. And i have 10 number buttons as a calculator.(0-1-2-3-4....) When my page loaded entry having a number. Its showing me start value.( For example when my page loaded entry text ...
-2
votes
0answers
6 views
Passing an instance of a class to a WPF and WinForms user-control
I have a WPF application that has both WPF and WinForms user-controls within it. The Constructor below is from a user-control that binds data from the object quickStorageEstimator
...
-1
votes
0answers
15 views
Convert Console Application To Windows Form C# [closed]
I have a series of data such as photos - text - and tags that I have in an application form and I want to send them to Instagram.
The problem here is I found a series of codes that were unfortunately ...
0
votes
0answers
9 views
Adding Cipher suite to TLS1.2 of HttpClient of dotnetcore 3.1
I encounter the folowing exception when connecting to the website of Western digital:
website of Western digital
22:02:34,803 | HttpGrabber | DEBUG | Grabbing: GET https://shop.westerndigital.com/...
-1
votes
1answer
34 views
Sorting table based on primary keys in order
I have a tables with 3 Primary keys, A and B and C.
I want to sort its inserted data firstly based on A, then the resulted data should be sorted by B and then sorted by C.
The order of A, B and C is ...
-3
votes
0answers
11 views
c# “System.Runtime.InteropServices.COMException: 'Bir COM bile?enine yap?lan ça?r?dan HRESULT E_FAIL hatas? döndürüldü” Hatas? [closed]
Arkada?lar b?yle bir hata al?yorum c# üzerinden bir kod yazarken. Sistem dilini de?i?tirdim olmad? ba?ka ne yapabilirim?
"System.Runtime.InteropServices.COMException: 'Bir COM bile?enine yap?lan ...