Skip to content

Instantly share code, notes, and snippets.

@luisdeol
Created July 15, 2019 22:30
Show Gist options
  • Save luisdeol/df8f6ad73cc7667ad19e066c1d949ad4 to your computer and use it in GitHub Desktop.
Save luisdeol/df8f6ad73cc7667ad19e066c1d949ad4 to your computer and use it in GitHub Desktop.
2.5 - Using reflection (example class)
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