1,622,818 questions
1
vote
1
answer
39
views
How do I return extra properties in abp framework's autocomplete select?
So ABP has a kind of helper to select elements that uses select2 under the hood. I already consulted the docs but didn't find anything. So basically I have a cshtml element that looks like the default ...
-5
votes
0
answers
64
views
Vs code terminal [closed]
I'm having a problem with the VS Code app not running code. I type dotnet run in the terminal, and it loads and then returns to the start screen, so to speak. Everything was working yesterday, but now ...
1
vote
0
answers
29
views
How to use the GUILayout methods within a reserved rectangle in an editor script?
In an editor script, a reserved rectangle is obtained by using the GUILayoutUtility.GetRect method (This step is actually passed in by a 3rd party, so I can't change it), and then I need to draw ...
0
votes
1
answer
41
views
NUnit Testing with COM objects for VSTO Add-Ins: HRESULT: 0x80004002
I'm building an Add-In for Excel and I've been using NUnit to test. This is presenting a problem when it comes to testing functionality that interacts with Excel through the COM. I having problems ...
Advice
0
votes
3
replies
79
views
Validate file content from malicious script
My program receives a CSV file with two columns: ID and Prompt. The security team has asked me to validate the Prompt field. If it contains elements such as <script>, <!-->, or similar ...
2
votes
2
answers
74
views
How to filter a list of objects in an ASP.NET Core MVC controller using search parameters?
I am building a recipe application using ASP.NET Core MVC. I have a RecipeService that returns a list of recipes from an external API. I want to implement a search feature where a user can filter ...
Advice
0
votes
6
replies
68
views
Configurable data transformation engine
We are trying to build a data transformation engine. Our requirements are
We will have one or more datasource, sql query or excel upload
We will configure set of rules,
update value of some ...
Advice
0
votes
3
replies
65
views
C# build error when creating a facebook appC# build error: missing semicolon when creating a login function for a Facebook app"
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System....
Advice
0
votes
15
replies
225
views
DO-WHILE loop challenge
I am reading a book to learn C# and this is the problem statement.
As an optional challenge, add statements so that the user can only make three attempts before an error message is displayed.
I ...
Advice
0
votes
6
replies
116
views
How can I read and parse a semicolon-separated file into objects in C# in a clean and readable way?
I’m working with a simple text file containing car data, and I’d like to parse it into strongly typed objects in C#.
The file structure looks like this:
Brand;Model;FuelType;Year;Price
Toyota;Corolla;...
Tooling
0
votes
2
replies
95
views
How to build a mobile barcode scanner that retrieves product prices from a custom API (similar to Scan2Info)?
I’m working on a system similar to Scan2Info, where users can scan a product barcode using their mobile phone camera and instantly retrieve product information such as price, name, and details from a ...
0
votes
0
answers
88
views
WinForms (.NET 8): How to open a Form or UserControl from a property in a UserControl (Designer support)
I am working with C# and WinForms on .NET 8.
I have a simple UserControl:
using System;
using System.ComponentModel;
using System.Drawing.Design;
using System.Windows.Forms;
using System.Windows.Forms....
2
votes
2
answers
95
views
C# Socket handling - how to set the timeout
I've inherited code that is clearly awful, in syntax, in logic, and in knowledge. I have to assume the code below is also awful because it was the same developer, but I'm not a socket expert so I want ...
2
votes
1
answer
130
views
Why can I create "en-UN" as a culture, when it does not exist
It works on the developer machines, but not on some servers (at least not on server 2012 R2), so I was trying to figure out what and why.
So I tried to manually created a CultureInfo with "en-UN&...
Advice
14
votes
18
replies
3k
views
Apparently my code is AI-generated (except it's not)
I was curious, and I decided to run my code through some detect AI code. I was getting results of 90-99% AI generated code... Except I wrote every line myself.
I was getting comments such as: "...