Created
July 15, 2019 22:30
-
-
Save luisdeol/df8f6ad73cc7667ad19e066c1d949ad4 to your computer and use it in GitHub Desktop.
2.5 - Using reflection (example class)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace _25RuntimeReflection | |
{ | |
public class ClassForReflectionPractice | |
{ | |
public ClassForReflectionPractice(string oneString) | |
{ | |
_oneString = oneString; | |
} | |
private string _oneString { get; set; } | |
private int _oneInteger { get; set; } | |
public void SayHello() | |
{ | |
Console.WriteLine("Hello, World!"); | |
} | |
private void Whisper(string message) | |
{ | |
Console.WriteLine($"Shhh... hey... {message}"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment