Exemple #1
0
        protected override DmdType?ResolveNoThrowCore()
        {
            if (!IsMetadataReference)
            {
                return(this);
            }
            var newElementType = elementType.ResolveNoThrow();

            if (newElementType is not null)
            {
                return(AppDomain.MakeArrayType(newElementType, rank, sizes, lowerBounds, GetCustomModifiers()));
            }
            return(null);
        }
Exemple #2
0
        protected override DmdType ResolveNoThrowCore()
        {
            if (!IsMetadataReference)
            {
                return(this);
            }
            var newElementType = elementType.ResolveNoThrow();

            if ((object)newElementType != null)
            {
                return(AppDomain.MakeByRefType(newElementType, GetCustomModifiers()));
            }
            return(null);
        }
Exemple #3
0
        protected override DmdType?ResolveNoThrowCore()
        {
            if (!IsMetadataReference)
            {
                return(this);
            }
            var newElementType = elementType.ResolveNoThrow();

            if (!(newElementType is null))
            {
                return(AppDomain.MakePointerType(newElementType, GetCustomModifiers()));
            }
            return(null);
        }