Exemple #1
0
        public static ClassHandler CreateInstance(string classKey, int parameterIndex)
        {
            ClassHandler instance = null;

            if (ClassCache.DynamicClassDict.ContainsKey(classKey))
            {
                Type type = ClassCache.DynamicClassDict[classKey];
                instance = new ClassHandler(parameterIndex, type);
            }
            return(instance);
        }
Exemple #2
0
        public static ClassHandler CreateInstance(string classKey, LocalBuilder builder)
        {
            ClassHandler instance = null;

            if (ClassCache.DynamicClassDict.ContainsKey(classKey))
            {
                Type type = ClassCache.DynamicClassDict[classKey];
                instance = new ClassHandler(builder, type);
            }
            return(instance);
        }