I'm trying to call a method with 1 argument. However, no matter where I call the method, I get an error saying "class name is not valid at this point."(and in certain places, I also get an error saying "redundant empty statement") The argument I'm calling is a class variable.
Here is my code so it makes a bit more sense with what I'm trying to say
PrintReceipt(Pump aPump); //Method I'm trying to call
public static void PrintReceipt(Pump aPump) //The actual method
{
const double amountDispensed = 0;
DateTime currTime = DateTime.Now;
Console.WriteLine("\nAUTOMATED FUEL DELIVERY SYSTEM");
Console.WriteLine("\nRECEIPT");
Console.WriteLine("\nDate : {0:d}", currTime);
Console.Write("\nPaid for {1:#.##} litres of ", aPump.getPrice(), amountDispensed);
}
Apparently a single Reddit user posted a bunch of made up stuff about it being spyware and Steam users started review bombing it like mindless sheep. People have read the actual updated EULA and said that there's nothing notably different in it and nothing pointing to it being spyware. (replied to wrong post)
These gains are probably moot though if you use a Gecko based browser that can support adblocking on a much deeper level than Manifest V3 limits you to. The speed benefits from excellent blocking of careless ad networks are just ridiculous and instantly felt.
While these updates may improve loading performance by a few percents after a lot of hard engineering work, blocking ads on a deep level ahead of even loading them can instead easily cut several megabytes in one go.
Question
aussieChick
Hey guys,
I'm trying to call a method with 1 argument. However, no matter where I call the method, I get an error saying "class name is not valid at this point."(and in certain places, I also get an error saying "redundant empty statement") The argument I'm calling is a class variable.
Here is my code so it makes a bit more sense with what I'm trying to say
If anyone can help me out, that'd be great.
Thanks in advance,
Britt.
Link to comment
https://www.neowin.net/forum/topic/765830-c-class-name-is-not-valid-at-this-point-error/Share on other sites
6 answers to this question
Recommended Posts