/// <summary>
        /// Initializes the <see cref="RefractionEffectFactory"/> class.
        /// </summary>
        static RefractionEffectFactory()
        {
            // Create the filter
            var fc = new TypeFilterCreator
            {
                IsAbstract = false,
                IsClass = true,
                Interfaces = new Type[] { typeof(IPersistable), typeof(IRefractionEffect) },
                ConstructorParameters = Type.EmptyTypes
            };

            _filter = fc.GetFilter();

            // Create the factory instance
            _instance = new RefractionEffectFactory();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes the <see cref="RefractionEffectFactory"/> class.
        /// </summary>
        static RefractionEffectFactory()
        {
            // Create the filter
            var fc = new TypeFilterCreator
            {
                IsAbstract            = false,
                IsClass               = true,
                Interfaces            = new Type[] { typeof(IPersistable), typeof(IRefractionEffect) },
                ConstructorParameters = Type.EmptyTypes
            };

            _filter = fc.GetFilter();

            // Create the factory instance
            _instance = new RefractionEffectFactory();
        }