Пример #1
0
        internal static Object createProxyBySub(Type targetType)
        {
            AopCoderDialect dialect = new AopCoderDialectSub();
            String          name    = strUtil.Join(targetType.Namespace, dialect.GetClassFullName(targetType, ""), ".");

            return(_aopAssembly.CreateInstance(name));
        }
Пример #2
0
        private static void createSubClassProxy(StringBuilder sb, KeyValuePair <Type, ObservedType> kv)
        {
            Type            type    = kv.Key;
            AopCoderDialect dialect = new AopCoderDialectSub();

            append_ns_begin(sb, type);
            append_class_begin(sb, type, dialect);

            append_methods(sb, kv, dialect);
            append_methods_base(sb, kv, dialect);

            append_class_end(sb);
            append_ns_end(sb);
        }
Пример #3
0
        private static void createSubClassProxy( StringBuilder sb, KeyValuePair<Type, ObservedType> kv )
        {
            Type type = kv.Key;
            AopCoderDialect dialect = new AopCoderDialectSub();

            append_ns_begin( sb, type );
            append_class_begin( sb, type, dialect );

            append_methods( sb, kv, dialect );
            append_methods_base( sb, kv, dialect );

            append_class_end( sb );
            append_ns_end( sb );
        }