Inheritance: PublicBroadcasting.Impl.TypeDescription
        static PropertiesPrivateDescriber()
        {
            var promiseType   = typeof(PromisedTypeDescription <,>).MakeGenericType(typeof(T), typeof(PropertiesPrivateDescriber <>).MakeGenericType(typeof(T)));
            var promiseSingle = promiseType.GetField("Singleton");

            PropertiesPrivatePromise = (PromisedTypeDescription)promiseSingle.GetValue(null);

            var res = Describer.BuildDescription(typeof(PropertiesPrivateDescriber <>).MakeGenericType(typeof(T)));

            PropertiesPrivatePromise.Fulfil(res);

            PropertiesPrivate = res;
        }
Beispiel #2
0
        static FieldsProtectedDescriber()
        {
            var promiseType   = typeof(PromisedTypeDescription <,>).MakeGenericType(typeof(T), typeof(FieldsProtectedDescriber <>).MakeGenericType(typeof(T)));
            var promiseSingle = promiseType.GetField("Singleton");

            FieldsProtectedPromise = (PromisedTypeDescription)promiseSingle.GetValue(null);

            var res = Describer.BuildDescription(typeof(FieldsProtectedDescriber <>).MakeGenericType(typeof(T)));

            FieldsProtectedPromise.Fulfil(res);

            FieldsProtected = res;
        }
        static AllInternalDescriber()
        {
            var promiseType   = typeof(PromisedTypeDescription <,>).MakeGenericType(typeof(T), typeof(AllInternalDescriber <>).MakeGenericType(typeof(T)));
            var promiseSingle = promiseType.GetField("Singleton");

            AllInternalPromise = (PromisedTypeDescription)promiseSingle.GetValue(null);

            var res = Describer.BuildDescription(typeof(AllInternalDescriber <>).MakeGenericType(typeof(T)));

            AllInternalPromise.Fulfil(res);

            AllInternal = res;
        }
        static AllProtectedDescriber()
        {
            var promiseType   = typeof(PromisedTypeDescription <,>).MakeGenericType(typeof(T), typeof(AllProtectedDescriber <>).MakeGenericType(typeof(T)));
            var promiseSingle = promiseType.GetField("Singleton");

            AllProtectedPromise = (PromisedTypeDescription)promiseSingle.GetValue(null);

            var allProtected = Describer.BuildDescription(typeof(AllProtectedDescriber <>).MakeGenericType(typeof(T)));

            AllProtectedPromise.Fulfil(allProtected);

            AllProtected = allProtected;
        }