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.

c#
0 votes
0 answers
6 views

Adding an embedded font to a datagridview

I want to put a custom font to a datagridview but it is not applied, it only applies to other elements such as labels. I originally tried this and it worked as expected. fontCollection.AddFontFile(&...
jhu unhn hefhd's user avatar
0 votes
0 answers
6 views

How to add new column to existing abp table __core_EntityPropertyChange

I am using abp(aspnet boilerplate) framework. There is framework build table __core_EntityPropertyChange for auditing purpose. Since this is framework build table so I am unable to add new column to ...
Pradeep Kumar's user avatar
-1 votes
0 answers
8 views

Replacing a sentence that has citations in a DOCX file as Track Changes

I trying to replace a sentence instead of old one (which has citations) in a DOCX document using OpenXmlRegex.Replace method. The thing is creating the regex of old sentence and using it for replace ...
yacc_fridman's user avatar
0 votes
1 answer
10 views

What are the possible ways we can handle the case when the setup code of a test fixture requires to be tested itself without violating best practices?

What are the possible ways we can handle the case when the setup code of a test fixture requires to be tested itself without violating best practices? Consider the following code in C# 12.0/.NET 8.0 ...
Hashkoon's user avatar
2 votes
1 answer
28 views

Read CSV using LINQ - Index out of Bounds

My .csv is in the format - Group No,Group Name,Type,Class,Category,Description,Product,Quantity,Stock,Id,Name 1,B,X,Y,Table,Wooden Table,Table,12,50,123,XYZ I am trying to read this .csv using the ...
Anonymous's user avatar
-3 votes
0 answers
21 views

Asking for help converting SQL query to EF Core [closed]

I have a working program that uses SQL queries to collect data. I'm working on converting it to EF Core 8. I found an online convert but the result will not compile in my C# project. Can someone ...
herba's user avatar
  • 3
0 votes
0 answers
16 views

Own job scheduler using .NET Core [closed]

I have asked to create POC for our own job scheduler using following tech stack, which should replace the onpremimse AutoSys to cloud based solution. Tech Stack: Angular C#, .NET 8.0 Azure PaaS (ex: ...
Vignesh Kumar A's user avatar
0 votes
0 answers
12 views

How to move a sprite independently of its parent node in Godot C#?

I am trying to make my sprite move/rotate independently of its parent node, so that the hitbox does not follow the sprite. I am trying to make the sprite smoothly sway side to side whilst the player ...
user26530124's user avatar
0 votes
0 answers
3 views

Reference to IExceptionHandler interface not being resolved from Microsoft.AspNetCore.Diagnostics

I am adding a global exception handling project to my solution and have installed the Microsoft.AspNetCore.Diagnostics NuGet package. Although the package is recognized and listed in the project's ...
aim's user avatar
  • 1
0 votes
0 answers
19 views

ASP.NET Core MVC: Comment Replies Not Working After Refactoring

I am working on an ASP.NET Core MVC project that involves posts and comments. Users can leave comments on posts, and they can also reply to other comments. The initial implementation was working (...
Hr.Panahi's user avatar
  • 832
-2 votes
0 answers
40 views

How can we update decimal precision for two places in c#?

I have a model class with a decimal? amount column. This has value from database is 35.00 but when passing from API It has 35.0. I'm trying to update decimal precision by two digit. something like 35....
Er Sachita Nand's user avatar
0 votes
0 answers
11 views

Multi-Collection Views - Display .NET MAUI CollectionView within a CollectionView

I am developing a c# .NET Maui application that creates a bowling app that maintains a recap of scores for bowling team. The requirements are that it is a general application that supports leagues ...
Shades49's user avatar
0 votes
1 answer
36 views

Passing an array of objects from C# to VBA Excel

I have a C# console application and Dll. I registered the dll as COM via interop. I used the COM Visible property, GUID etc Set Assembly Information, Build information to register it to COM I ...
Dee's user avatar
  • 1
0 votes
0 answers
4 views

Converting Word Document to PDF with Winnovative - Form Fields

I have a word document, that I want to convert to PDF via Winnovative. The basics work, as done with the following function. public byte[] ConvertWordToPdf(Stream fileStream) { var ...
MilConDoin's user avatar
0 votes
0 answers
12 views

Generic way of handling call to multiple api endpoints that use JWT

Setting up an application to call one of a handful of different client api endpoints, each of which use JWT. However, as of now I dont know the specifics of how the specific client might implement ...
bitshift's user avatar
  • 6,570

15 30 50 per page
1
2 3 4 5
12