예제 #1
0
        public static void ParamsFromTXT <T>(T obj) where T : class
        {
            StreamReader reader = new StreamReader("parametr.txt", Encoding.Default);
            string       param;

            param = reader.ReadLine();
            reader.Close();
            StringEdit.ToUpperCase(param);
        }
예제 #2
0
        static void Main(string[] args)
        {
            Game gamer1 = new Game();

            StringEdit string1 = new StringEdit("String");

            Reflector.AllPartsOfClass <StringEdit>(string1);
            WriteLine("The second task: \n");
            Reflector.GetPublicMethods <StringEdit>(string1);
            Reflector.GetPublicMethods <Game>(gamer1);
            WriteLine("The third task: \n");
            Reflector.GetFieldsAndProperties <StringEdit>(string1);
            Reflector.GetFieldsAndProperties <Game>(gamer1);
            WriteLine("The forth task: \n");
            Reflector.GetInterfacesOfClass <StringEdit>(string1);
            Reflector.GetInterfacesOfClass <Game>(gamer1);
            WriteLine("The fifth task: \n");
            Reflector.NamedMethod <StringEdit>(string1);
            WriteLine("The sixth task: \n");
            Reflector.ParamsFromTXT <StringEdit>(string1);
        }