Пример #1
0
 void PrintGenericParameters(StringBuilder builder)
 {
     if (GenericParameterCount != 0)
     {
         GenericParameters.Print(builder, ",", "<", ">", (gp, b) => b.Append(gp.Name));
     }
 }
Пример #2
0
 internal override void GetFullName(StringBuilder b)
 {
     CheckDisposed();
     if (DeclaringType != null)
     {
         DeclaringType.GetFullName(b);
         b.AppendFormat("+{0}", Name);
     }
     else if (Namespace.Equals(""))
     {
         b.Append(Name);
     }
     else
     {
         b.AppendFormat("{0}.{1}", Namespace, Name);
     }
     if (GenericParameters.Count != 0)
     {
         GenericParameters.Print(b, ",", "<", ">", (gp, builder) => builder.Append(gp.Name));
     }
 }