Skip to content

Instantly share code, notes, and snippets.

View kyrathasoft's full-sized avatar

William.Miller kyrathasoft

View GitHub Profile
@kyrathasoft
kyrathasoft / hello.cs
Last active July 21, 2018 14:02
Hello world as a console C# programpastebin.com -> A6YSkWj
using System;
/*
from Lesson 01 in introductory C# console programming series:
http://williammillerservices.com/windows-c-console-programming/
prints 'Hello world!' to the console
pastebin.com -> https://pastebin.com/A6YSk4Wj
GitHub gist -> https://gist.github.com/kyrathasoft/6f38f0e1207cd97eae4f181227cfafb1
*/
namespace HelloWorld{
class Hello{
using System;
/*
from Lesson 4 of C# console programming tutorial series at following URL:
http://williammillerservices.com/windows-c-console-programming/
GitHub gist -> https://gist.github.com/kyrathasoft/ab43a77559ba7a95de2519019953a78f
Pastebin.com -> https://pastebin.com/c33gAU71
*/
namespace HowdyGuys{
class WhatsUpDoc{
static void Main(){
@kyrathasoft
kyrathasoft / age.cs
Last active July 21, 2018 14:37
A program written in Lesson 4 of the following introductory C# console programming series:http://williammillerservices.com/windows-c-console-programming/
using System;
/*
from Lesson 4 of C# console programming tutorial series at following URL:
http://williammillerservices.com/windows-c-console-programming/
demonstrates input data validation and parsing to int
GitHub gist -> https://gist.github.com/kyrathasoft/a6ead63e6832361086dc69a6487de81d
Pastebin.com -> https://pastebin.com/ySY7crrg
*/
namespace MyNamespace
{
@kyrathasoft
kyrathasoft / integ.cs
Last active July 21, 2018 14:30
Part of Lesson 4 of introductory C# console programming series:http://williammillerservices.com/windows-c-console-programming/
using System;
/*
from Lesson 4 of C# console programming tutorial series at following URL:
http://williammillerservices.com/windows-c-console-programming/
demonstrates potential run-time error in that user may fail to input
a value that is parseable to an integer
GitHub gist -> https://gist.github.com/kyrathasoft/2bc097e9e9a465f7d4388e46ed8798cb
Pastebin.com -> https://pastebin.com/7uPxzcKG
*/
namespace MyNamespace {
@kyrathasoft
kyrathasoft / method1.cs
Last active July 21, 2018 17:28
Demonstrates invoking a method from within Main( )Part of Lesson 05 of introductory C# console programming series:http://williammillerservices.com/windows-c-console-programming/
using System;
/*
from Lesson 5 of C# console programming tutorial series at following URL:
http://williammillerservices.com/windows-c-console-programming/
demonstrates invoking a method from within Main()
GitHub gist -> https://gist.github.com/kyrathasoft/e19b0b8f2ea5e40af8cda06d8cbda812
Pastebin.com -> https://pastebin.com/Xv6MYL6W
*/
namespace MyNamespace {
@kyrathasoft
kyrathasoft / method2.cs
Last active July 21, 2018 17:31
Part of Lesson 5 of introductory C# console programming series: http://williammillerservices.com/windows-c-console-programming/ demonstrates passing an argument into a method as we invoke it.
using System;
/*
from Lesson 5 of C# console programming tutorial series at following URL:
http://williammillerservices.com/windows-c-console-programming/
demonstrates invoking a method from within Main() and passing it a string argument
GitHub gist -> https://gist.github.com/kyrathasoft/d76dad203ea9c0a8e342fa24bc77dde0
Pastebin.com -> https://pastebin.com/dLA4DUMb
*/
namespace MyNamespace {
@kyrathasoft
kyrathasoft / howdy.cs
Last active July 21, 2018 14:18
Gets user's name and greets her. From lesson 3 of series:http://williammillerservices.com/windows-c-console-programming/
using System;
/*
from Lesson 3 of C# console programming tutorial series at following URL:
http://williammillerservices.com/windows-c-console-programming/
GitHub gist -> https://gist.github.com/kyrathasoft/028ccbb83366e117b0c5920856e95d3a
Pastebin.com -> https://pastebin.com/fRpW6wBk
*/
namespace HowdyGuys
{
class WhatsUpDoc
@kyrathasoft
kyrathasoft / getFour.cs
Last active July 21, 2018 17:05
from Lesson 5 of C# console programming tutorial series at following URL: http://williammillerservices.com/windows-c-console-programming/ demonstrates while loop and safe parsing of string to integer. Tocompile, requires tester1.cs
using System;
using TestInput;
/*
from Lesson 5 of C# console programming tutorial series at following URL:
http://williammillerservices.com/windows-c-console-programming/
demonstrates while loop and safe parsing of string to integer. To
compile, requires tester1.cs
GitHub gist -> https://gist.github.com/kyrathasoft/619b3addf6d7204d325a04ff77859a77
Pastebin.com -> https://pastebin.com/3N76Jz03
Dependencies: tester1.cs
@kyrathasoft
kyrathasoft / getz.cs
Last active July 21, 2018 17:23
from Lesson 5 of C# console programming tutorial series at following URL: http://williammillerservices.com/windows-c-console-programming/ demonstrates while looping until condition is met
using System;
/*
from Lesson 5 of C# console programming tutorial series at following URL:
http://williammillerservices.com/windows-c-console-programming/
demonstrates while looping until condition is met
GitHub gist -> https://gist.github.com/kyrathasoft/6714b36f73d506433d0f8b864ec9d55a
Pastebin.com -> https://pastebin.com/kTF8qhPi
*/
namespace MyNamespace
@kyrathasoft
kyrathasoft / mult.cs
Last active July 21, 2018 17:51
/* from Lesson 5 of C# console programming tutorial series at following URL: http://williammillerservices.com/windows-c-console-programming/ demonstrates data input validation and multiplication of integers dependencies: -> https://gist.github.com/kyrathasoft/35357f7fee1c427693323286111e5e43 */
using System;
using TestInput;
/*
from Lesson 5 of C# console programming tutorial series at following URL:
http://williammillerservices.com/windows-c-console-programming/
demonstrates data input validation and multiplication of integers
GitHub gist -> https://gist.github.com/kyrathasoft/ec0d45c9cfadc31736d6b0ce2efa3fce
Pastebin.com -> https://pastebin.com/vaU09diD
dependencies:
-> https://gist.github.com/kyrathasoft/35357f7fee1c427693323286111e5e43