© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
12 replies
Lewis C

❔ Reusing strings across classes

This is file 1

https://cdn.discordapp.com/attachments/987310138195054592/1067462232860004433/image0.jpg

I’d like to store and using the string content in other classes

Like this

https://cdn.discordapp.com/attachments/987310138195054592/1067462409738010634/image0.jpg

But I have the red line of doom. What am I doing wrong
Preview image
Preview image
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

WPF reusing the same template across multiple columns
C#CC# / help
4y ago
❔ .NET 6.0 - Nullable Strings with Dapper Model Classes
C#CC# / help
4y ago
✅ Strings
C#CC# / help
17mo ago