示例#1
0
        private string GetMonoEmbeddedFullTypeNameFor(TypeReference type)
        {
            TypeSpecification typeSpecification = type as TypeSpecification;
            string            fullName;

            if (typeSpecification != null && typeSpecification.get_IsRequiredModifier())
            {
                fullName = typeSpecification.get_ElementType().get_FullName();
            }
            else if (type.get_IsRequiredModifier())
            {
                fullName = type.GetElementType().get_FullName();
            }
            else
            {
                fullName = type.get_FullName();
            }
            return(fullName.Replace('/', '+').Replace('<', '[').Replace('>', ']'));
        }
 private static string GetFriendlyFullTypeSpecificationName(this TypeSpecification self, ILanguage language)
 {
     return(self.get_ElementType().GetFriendlyFullName(language));
 }
        private string GetMonoEmbeddedFullTypeNameFor(TypeReference type)
        {
            TypeSpecification typeSpecification = type as TypeSpecification;

            return((typeSpecification == null || !((TypeReference)typeSpecification).get_IsRequiredModifier() ? (!type.get_IsRequiredModifier() ? type.get_FullName() : type.GetElementType().get_FullName()) : typeSpecification.get_ElementType().get_FullName()).Replace('/', '+').Replace('<', '[').Replace('>', ']'));
        }