A small life update, I'm still busy, but I have been working on my comic script. I started a new job May 1 so I'm no longer at the hotel, I'm now at an accounting office. I know it's an unexpected move from me, but it's a good company and I'm enjoying my new schedule so I'm happy with the change. Looking forward to working on my comic and playing Pokemon Sword and Shield when it comes out. I'm leaning towards sword, but I'll wait to see the exclusives, though technically I could get the others since K will get the opposite version. Saw Endgame, it was epic, saw Detective Pikachu, it was funny. Anyway, this is just a quick update to let eve...
Console.ReadLine(); (always string when received)
Must be converted as received, same line.Exception errors are not custom (see list).
Try variables must be declared outside to be used outside the TCF.
There must be a try or catch before the finally.
try { do this }
catch (System.Exception) { see list }
finally { do this regardless of errors, can do custom error with if }const int (can't change variable)public static void Test() {...}call function: Test();
using System;
using System.Collections.Generic;namespace method
{
class Program
{ public static void Testing()
{
//works when static... Console.WriteLine("What is your name?"); string yourname = Console.ReadLine(); Console.Write("Hi " + yourname + "! (Function called...)");
} public static void Main(string[] args)
{
Testing(); Console.Read();
} }
}