BuildDescription() public static method

public static BuildDescription ( Type describerType ) : PublicBroadcasting.Impl.TypeDescription
describerType System.Type
return PublicBroadcasting.Impl.TypeDescription
示例#1
0
        static FieldsProtectedPrivateDescriber()
        {
            var promiseType   = typeof(PromisedTypeDescription <,>).MakeGenericType(typeof(T), typeof(FieldsProtectedPrivateDescriber <>).MakeGenericType(typeof(T)));
            var promiseSingle = promiseType.GetField("Singleton");

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

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

            FieldsProtectedPrivatePromise.Fulfil(res);

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

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

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

            AllPublicPromise.Fulfil(res);

            AllPublic = res;
        }
示例#3
0
        static PropertiesProtectedInternalDescriber()
        {
            var promiseType   = typeof(PromisedTypeDescription <,>).MakeGenericType(typeof(T), typeof(PropertiesProtectedInternalDescriber <>).MakeGenericType(typeof(T)));
            var promiseSingle = promiseType.GetField("Singleton");

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

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

            PropertiesProtectedInternalPromise.Fulfil(res);

            PropertiesProtectedInternal = 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;
        }