Static inner class constructor : static Class « Class « C# / CSharp Tutorial






using System;
using System.ComponentModel;

        class Outer<T>
        {
            public class Inner<U, V>
            {
                static Inner()
                {
                    Console.WriteLine("Outer<{0}>.Inner<{1},{2}>",
                                      typeof(T).Name,
                                      typeof(U).Name,
                                      typeof(V).Name);
                }
                public static void DummyMethod()
                {
                }
            }
            static void Main()
            {
                Outer<int>.Inner<string, DateTime>.DummyMethod();
            }
        }








7.42.static Class
7.42.1.Demonstrate a static class.
7.42.2.Static class and its inner class
7.42.3.Static inner class constructor