Ejemplo n.º 1
0
        private static void append_interface_class_begin(StringBuilder sb, Type type, AopCoderDialect dialect, String interfaceFullName)
        {
            sb.AppendFormat("\tpublic class {0} : {1} ", dialect.GetClassFullName(type, interfaceFullName), interfaceFullName);
            sb.Append("{");
            sb.AppendLine();
            sb.AppendLine();

            sb.AppendFormat("\t\tprivate {0} _{1};", interfaceFullName, dialect.GetInvokeTargetBase());
            sb.AppendLine();

            sb.AppendFormat("\t\tpublic {0} {1} ", interfaceFullName, dialect.GetInvokeTargetBase());
            sb.Append("{");
            sb.AppendLine();

            sb.Append("\t\t\tget { return _" + dialect.GetInvokeTargetBase() + "; }");
            sb.AppendLine();

            sb.Append("\t\t\tset { _" + dialect.GetInvokeTargetBase() + " = value; }");
            sb.AppendLine();

            sb.Append("\t\t}");
            sb.AppendLine();

            sb.AppendLine();
        }
Ejemplo n.º 2
0
 //----------------------------------------------------------------------------------------
 private static void append_class_begin( StringBuilder sb, Type type, AopCoderDialect dialect )
 {
     sb.AppendFormat( "\tpublic class {0} : {1} ", dialect.GetClassFullName( type, "" ), type.Name );
     sb.Append( "{" );
     sb.AppendLine();
     sb.AppendLine();
 }
Ejemplo n.º 3
0
        //----------------------------------------------------------------------------------------

        private static void append_class_begin(StringBuilder sb, Type type, AopCoderDialect dialect)
        {
            sb.AppendFormat("\tpublic class {0} : {1} ", dialect.GetClassFullName(type, ""), type.Name);
            sb.Append("{");
            sb.AppendLine();
            sb.AppendLine();
        }
Ejemplo n.º 4
0
        private static void append_interface_class_begin( StringBuilder sb, Type type, AopCoderDialect dialect, String interfaceFullName )
        {
            sb.AppendFormat( "\tpublic class {0} : {1} ", dialect.GetClassFullName( type, interfaceFullName ), interfaceFullName );
            sb.Append( "{" );
            sb.AppendLine();
            sb.AppendLine();

            sb.AppendFormat( "\t\tprivate {0} _{1};", interfaceFullName, dialect.GetInvokeTargetBase() );
            sb.AppendLine();

            sb.AppendFormat( "\t\tpublic {0} {1} ", interfaceFullName, dialect.GetInvokeTargetBase() );
            sb.Append( "{" );
            sb.AppendLine();

            sb.Append( "\t\t\tget { return _" + dialect.GetInvokeTargetBase() + "; }" );
            sb.AppendLine();

            sb.Append( "\t\t\tset { _" + dialect.GetInvokeTargetBase() + " = value; }" );
            sb.AppendLine();

            sb.Append( "\t\t}" );
            sb.AppendLine();

            sb.AppendLine();
        }