示例#1
0
        static IEnumerable <int> LocalIterator()
        {
            ConsoleTrace.PrintCurrentMethod();

            var rnd = new Random();

            for (int i = 0; i < 3; i++)
            {
                yield return(rnd.Next(1, 101));
            }
        }
示例#2
0
        static void Main()
        {
            ConsoleTrace.PrintCurrentMethod();

            Console.WriteLine();
            Console.WriteLine("Press any key to connect to the server.  Make sure that it's running first!");

            Console.ReadKey(intercept: true);

            new BasicClient().Run();
            new TimerClient().Run();
            new BasicFeedAggregationClient().Run();
            new AdvancedClient().Run();
            new DuplexClient().Run();
            new ChatClient().Run();
            new MaliciousClient().Run();
        }
示例#3
0
        static string LocalStaticMethod(int ignoredParameter)
        {
            ConsoleTrace.PrintCurrentMethod();

            return("(N");
        }
示例#4
0
        public int LocalInstanceMethod()
        {
            ConsoleTrace.PrintCurrentMethod();

            return(100);
        }