Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 {
- class MyClass {
- static void Main(string[] args){
- Howdy(); //we just called method Howdy
- }
- //method Howdy() will be called from within Main()
- static void Howdy(){
- Console.WriteLine("Howdy folks!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement