GetTypeOutput() 공개 메소드

public GetTypeOutput ( CodeTypeReference type ) : string
type CodeTypeReference
리턴 string
예제 #1
0
        private ViewLocationResult CreateViewLocationWithModel(Type expectedType, CodeDomProvider provider, string modelDirective)
        {
            var codeTypeRef = new CodeTypeReference(expectedType);
            var modelType = provider.GetTypeOutput(codeTypeRef);

            var modelTypeCode = BuildCodeExtractingModelType(provider);

            var view = string.Format("@{0} {1}\n\n@{2}", modelDirective, modelType, modelTypeCode);

            return new ViewLocationResult(
                string.Empty,
                string.Empty,
                string.Concat(provider.FileExtension, "html"),
                () => new StringReader(view)
                );
        }
 internal static string GetTypeName(CodeDomProvider codeProvider, string string1, string string2)
 {
     string str2 = codeProvider.GetTypeOutput(Type(typeof(Activator))).Replace("System", "").Replace("Activator", "");
     return (string1 + str2 + string2);
 }