Beispiel #1
0
        /// <inheritdoc/>
        internal override string GetNamespaceName()
        {
            // For nullable types, we want to get the namespace of the underlying type, not the System.Nullable<T> type, because it will be displayed as T?.
            if (IsNullable(out TypeData underlyingType))
            {
                return(underlyingType.GetNamespaceName());
            }

            return(GenericTypeDefinition.GetNamespaceName());
        }