コード例 #1
0
        static ExpressionBuilderFactoty()
        {
            var handlerTypes = TypeLoader.GetSubTypes(typeof(BaseExpressionBuilder));

            foreach (var type in handlerTypes)
            {
                BaseExpressionBuilder variableHandler = (BaseExpressionBuilder)Activator.CreateInstance(type);
                handles.Add(variableHandler);
            }
        }
コード例 #2
0
        static VariableHandleFactory()
        {
            var handlerTypes = TypeLoader.GetSubTypes(typeof(BaseVariableHandler));

            foreach (var type in handlerTypes)
            {
                BaseVariableHandler variableHandler = (BaseVariableHandler)Activator.CreateInstance(type);
                handles.Add(variableHandler);
            }
        }