예제 #1
0
 public override void Write(SchemaWriter writer)
 {
     if (parameter == null)
     {
         writer.Append(string.Format("default({0})", ReturnType.FullName));
     }
     else
     {
         parameter.Write(writer);
     }
 }
예제 #2
0
        public override void Write(SchemaWriter writer)
        {
            caller.Write(writer);
            writer.Append("." + Name + "(");

            for (int i = 0; i < Parameters.Length; i++)
            {
                Parameters[i].Write(writer);

                if (i < Parameters.Length - 1)
                {
                    writer.Append(", ");
                }
            }

            writer.Append(")");
        }