コード例 #1
0
 private string GetTypeTemplateName (SimpleTypeReference type, int position) {
     TypeTarget target = type.Resolve(targets) as TypeTarget;
     if (target != null) {
         string[] templates = target.Templates;
         if (templates.Length > position) {
             return (templates[position]);
         } else if (target.OuterType != null) {
             return (GetTypeTemplateName(target.OuterType, position));
         } else {
             return ("UTT");
         }
     } else {
         throw new InvalidOperationException(String.Format("Unknown type reference '{0}'", type.Id));
     }
 }
コード例 #2
0
 private void WriteSimpleType (SimpleTypeReference simple, DisplayOptions options, bool showOuterType, XmlWriter writer) {
     TypeTarget type = simple.Resolve(targets) as TypeTarget;
     if (type != null) {
         WriteTypeTarget(type, options, showOuterType, writer);
     } else {
         TextReferenceUtilities.WriteSimpleTypeReference(simple, options, writer);
     }
 }