❔ Why showing error IDK.

I'm learning FileIO and I have copied code from book to learn but showing error.
11 Replies
Buddy
Buddy9mo ago
Please show the error too red squiggly lines aren't helpful
Serene Sphinx
Serene Sphinx9mo ago
Just a sec
Serene Sphinx
Serene Sphinx9mo ago
Thinker
Thinker9mo ago
Where do you expect SectionTitle to come from?
Serene Sphinx
Serene Sphinx9mo ago
I have just coped to learn file IO from book and as you asking in book what you are saying is not mentioned. Maybe from above 3 IO namespaces using static System.IO.Directory; using static System.IO.Path; using static System.Environment; Hey
Buddy
Buddy9mo ago
I suggest calling your Program class something else and then just call Foo.Bar() as it is a static method or don't abuse partial classes and just define the method in the startup file itself
Serene Sphinx
Serene Sphinx9mo ago
Hey
Buddy
Buddy9mo ago
hey?
KidAlchemy
KidAlchemy9mo ago
Did you get it working?
Serene Sphinx
Serene Sphinx9mo ago
Not yet
Accord
Accord9mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
advantages of upgrading a website from .net 4.7 (framework) to .net 7 (core) ?Hello I work for a company that has a .net 4.7.2 site. I still have 2 months of work with them. Is t❔ Help me understand this lambda expressionvar myKey = availableProducts.FirstOrDefault(x => x.Value == input).Key; Console.WriteLine("✅ UV TroubleI'm current writing a voxel game in unity and have been working to get UV's properly affixed to the ❔ Syntactical Difference In Azure Function ScriptsI have syntax for two files: ```[Function("CreatePrivateMessage")] public HttpRespo❔ vscodeintellcode-csharp-0126 very high cpui just type c# code in vscode in linux, i get high cpu 100%, just during type,when stop type, the cp❔ Can someone help me understand this statement around dependency inversion with an example?I was refreshing my memory on SOLID based on conversations in #chat today, and a particular statemen❔ How to integrate stripe payment gateway into C# application?I have a small work that needs to be done soon. Only stipe payment integration into a C# applicationTypeInitializationException thrown by runtime when attempting to use JsonSerializer (.NET 8.0).Hi. I am running dotnet version 8.0.100-preview.4.23260.5, using ASP.NET version 8.0.0-preview.7.233❔ Assignment: TCPListener that recieves and returns to tcpClientHey. I do know how the tcpListener and tcpClient class works in c#, however im stuck on this assign❔ Sign up /Log in formI need help creating a sign up form for my app. I understand the components, but still find it quite