public override string GetTypeName(IAnonymousType target)
 {
     if (IsVisualBasic)
     {
         return(string.Format(TypePattern, target.Index));
     }
     else
     {
         return(string.Format(TypePattern, "f", target.Index));
     }
 }
Example #2
0
 private static ITypeName GetName(this IAnonymousType type,
                                  IDictionary <DeclaredElementInstance, IName> seenElements)
 {
     return(Names.UnknownType);
 }
Example #3
0
 /// <summary>
 /// Obtains the <see cref="String"/> that represents
 /// a given <see cref="IAnonymousType"/>'s name.
 /// </summary>
 /// <param name="target">The target <see cref="IAnonymousType"/>
 /// from which to generate the name.</param>
 /// <returns>A <see cref="String"/> which represents the name
 /// of the <see cref="IAnonymousType"/>.</returns>
 public abstract string GetTypeName(IAnonymousType target);
Example #4
0
 public override void VisitAnonymousType(IAnonymousType anonymousType)
 {
 }