コード例 #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('>', ']'));
        }