public void CompilerServiceUtility_CheckVBNetIteratorType() { var type = IteratorHelper().GetType(); var result = CompilerServicesUtility.ResolveVBTypeName(type); Assert.AreEqual("System.Collections.Generic.IEnumerable(Of System.String)", result); }
public override string BuildTypeName(Type templateType, Type modelType) { if (templateType == null) { throw new ArgumentNullException("templateType"); } var modelTypeName = CompilerServicesUtility.ResolveVBTypeName(modelType); return(CompilerServicesUtility.VBCreateGenericType(templateType, modelTypeName, false)); }