Skip to main content
The 2024 Developer Survey results are live! See the results

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 ecosystem, which include .NET, .NET Framework, .NET MAUI, and Xamarin among others. Use this tag for questions about code written in C# or about C#'s formal specification.

1 vote
0 answers
12 views

How do I open a new window on top of other windows using a NavigationViewItem?

Is this a bug in Visual Studio 2022, or am I missing something? I don't know why only using a button opens the window on top like I want it to. Putting a button in the navigation view doesn't look ...
WilliamK's user avatar
0 votes
0 answers
37 views

How to completely hide the title bar in a .NET MAUI application on Windows while retaining resizability?

I am developing a .NET MAUI Blazor Hybrid App for Windows, and I want to hide the default title bar completely while keeping the window resizable. I've tried modifying the MauiProgram.cs file to ...
VQH DEV's user avatar
  • 63
0 votes
0 answers
14 views

Office 365 Power Query framework for developing Excel Add-in [closed]

enter image description here I want to build the similar framework to display the Data on selection of a cell either of the language. Please refer the attached image. Can someone recommend me how can ...
Ashwani Aggarwal's user avatar
0 votes
0 answers
18 views

Sort results of DataView are different in different versions of .Net Framework

The GoodsNo column of the DataView has two pieces of data, HB3-T017 and HB-T015, which are now sorted by GoodsNo, with different results in .Net2.0 and 8.0. The order under .Net2.0 is HB3-T017, HB-...
Tian戊辰's user avatar
0 votes
1 answer
38 views

Problem installing .NET SDK in Visual Studio Code

I'm trying to use C# in VS Code which requires me to install the .NET SDK. I'm following the steps provided by VS Code to install it, but it doesn't work, even after reinstalling it does not work. ...
Ahmad Adief's user avatar
0 votes
1 answer
24 views

How to embed Python to .Net?

I tried to embed Python to .Net using pythonnet based on the docs here and here. Here are my code Runtime.PythonDLL = @"D:\Dev\Console\.conda\python311.dll"; PythonEngine.Initialize(); ...
Syaiful Nizam Yahya's user avatar
0 votes
0 answers
20 views

Ignoring rows that have Null in a cell. C# IronXL

I am working on a project where I want to make my program read an Excel sheet, and read out the information to a textbox, however I have been able to do this but I want it so if any cell in a row has ...
Rileyblue3's user avatar
0 votes
1 answer
40 views

Refactoring command pattern

I have implemented a command pattern for an SDK that I am building in C# but I want to prevent it from being misused. What I currently have (1) is this. Notice how the request's Execute method can be ...
mulllhausen's user avatar
  • 4,345
0 votes
0 answers
19 views

Strange gRPC Issue on iOS for Blazor MAUI Hybrid

We are using gRPC in our app and it works great, now suddenly we got the error below on iOS, the exact same code works great on Android and Windows. The error: TypeInitialization_Type, ...
Smith5727's user avatar
  • 621
0 votes
0 answers
24 views

Getting weird compiler error XAGAP7000 in my otherwise-simple C#/MAUI app

I have a simple C#/MAUI app - all classes in the same namespace. Getting this weird error XAGAP7000 all of a sudden, and Googling doesn't seem to help. I tried repairing the Visual Studio ...
Adam Mac's user avatar
  • 351
-2 votes
1 answer
49 views

Can a property be followed by []?

I am studying this C# code from .NET documentation and I don't understand the following snippet (it is under the title "Examine the implementation"): var issueAndPRQuery = new GraphQLRequest ...
Deva Raja's user avatar
-1 votes
0 answers
19 views

Sum in Lookup in Monogo C# [closed]

List<abcd> data = new List<abcd>(); data.Add(new abcd { name = "tbl1", fieldname = "total_amount" }); data.Add(new abcd { name = "tbl2&...
Mahar Taimur's user avatar
0 votes
0 answers
27 views

Issues with File Upload in ASP.NET Core using Blazor

I'm working on a project with separate backend and frontend folders. On the frontend side, I have the following service for uploading files: public async Task<IEnumerable<FileMetaDataDto>>...
Mr Dot's user avatar
  • 267
0 votes
0 answers
15 views

Umbraco: An item with the same key has already been added. Key: title error

I upgraded my website to Umbraco 14 and when I try to add new items I the following error message: An item with the same key has already been added. Key: title Then I run the following command on the ...
Menahem Gil's user avatar
0 votes
0 answers
34 views

DbContext Identity login exception

I have a problem that I do not really know how to solve. So, here it is: Image of exception InvalidOperationException: Cannot create a DbSet for 'IdentityUserClaim' because this type is not included ...
Xaus Master's user avatar

15 30 50 per page