Random Reflection code in WPF