Ejemplo n.º 1
0
        public void CompilerServiceUtility_CheckVBNetIteratorType()
        {
            var type   = IteratorHelper().GetType();
            var result = CompilerServicesUtility.ResolveVBTypeName(type);

            Assert.AreEqual("System.Collections.Generic.IEnumerable(Of System.String)", result);
        }
Ejemplo n.º 2
0
        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));
        }