C# Forums
323 FOLLOWERS
C# Forums is the exclusive C# .NET community. Join the discussions about installation, IDE, .NET Framework, .NET Core, Security/Obfuscation and accessibility. You can also talk about Graphics / GDI+, Remoting, Console Application, Component Development, and Deployment.
C# Forums
4d ago
Hi All.
I have converted a Gradient RegEx Fractal code from Java to CSharp in which you type in a RegEx string like 1*2*0 and it creates a fancy gradient pattern, saved to a png file. It used a nuget package called Fare which implements dk.briks.automation.
The Java version was originally here:
GitHub - SSODelta/GradientRegexImages: Creating pretty images from regular expressions using edit distance
and the Fare nuget for CSharp is here:
GitHub - moodmosaic/Fare: Port of Java dk.brics.automaton and xeger, mostly used for generating strings that match a specific regular expression.
Port of ..read more
C# Forums
5d ago
Hi All.
I have converted a Gradient RegEx Fractal code from Java to CSharp in which you type in a RegEx string like 1*2*0 and it creates a fancy gradient pattern, saved to a png file. It used a nuget package called Fare which implements dk.briks.automation.
The Java version was originally here:
GitHub - SSODelta/GradientRegexImages: Creating pretty images from regular expressions using edit distance
and the Fare nuget for CSharp is here:
GitHub - moodmosaic/Fare: Port of Java dk.brics.automaton and xeger, mostly used for generating strings that match a specific regular expression.
Port of ..read more
C# Forums
6d ago
Can an app running user-supplied C# code (i.e Microsoft.CodeAnalysis.CSharp.Scripting) ever truly be protected from the script being executed? Use case might be - app supplies an object with a payload that the script can interact with and modify and then the app does further processing on the object returned by the script.
With no measures in place a malicious script could for example introduce reflection and start doing things outside of what the app intends. There's standard measures like...
Read more ..read more
C# Forums
1w ago
Hi everyone, newbie here please be gentle!
We are using .Net Core with Razor pages in an MS Edge browser. I have been tasked with implementing a browse button that will allow users to upload a file (excel or CSV) from their PCs to be processed by the system. Also, we have to make a copy of the file and place on a fileshare for archiving purposes.
I know Edge has additional security properties that may be tricky. So just wondering any advice/suggestions/best approached would be most...
Read more ..read more
C# Forums
1w ago
So I have a StoredProcedure that either Updates or Inserts a record. The SP is as follows:
Stored Procedure:
USE [FPY]
GO
/****** Object: StoredProcedure [dbo].[insupd_tblMRBHistory_AB] Script Date: 2025-01-10 8:02:00 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[insupd_tblMRBHistory_AB]
(@BusinessUnit char(30)
,@PartNum char(25)
,@Description varchar(50)
,@Category char(4)
,@LotNum char(25)
,@LocationID int
,@StockMRB int...
Read more ..read more
C# Forums
1w ago
Folks:
I am gearing up for a project now in Proof of Concept stage. My specific issue is I have a component. It is simply a box. It is three deep from page so Page -> Major Component -> The Status Box in question. This is going to be a monitoring app. So - little to no user interaction. Changes come from the outside. (Like a fantasy football scoreboard.) UI change needs to occur based on events outside the application - identified by non-UI server side code.
My current task is...
Read more ..read more
C# Forums
1w ago
Hello, just started learning C# at my univeristy, im sorry if this aint the best place to post this kind of things. I need help with a task . I missed one lesson and i can't do this. I've been racking my brain so hard, and i can't figure it out.
Thank you ..read more
C# Forums
1w ago
All of my console programs were made in Visual Studio 2015. I know I can just open the source code file in Notepad and copy it, and then paste it in the window of a Visual Studio 2019 project. Save it. Build it. And it will run just fine.
But what about Windows programs? GUI programs in other words. I would imagine a GUI program generates more types of files that would need to be imported into Visual Studio 2019.
So that would not work would it?
I would have to just make the GUI program...
Read more ..read more
C# Forums
1w ago
I tried to connect to an Oracle database in Visual Studio, I installed Oracle Developer Tools for Visual Studio 2022 and tried to connect in Tools > Connect to Database..., I chose Oracle Database and in Data Provider ODP.NET, Managed Driver. I filled in all the fields, but I got the error ORA-50201 ..read more
C# Forums
1w ago
Does anyone have a List Enumerator example for generic list class. One that inherits from IEnumerator. Such that foreach can be used for generic list class ..read more