How to get methods through classes? - C#