Example #1
0
        internal override bool ApplyNullableTransforms(
            byte defaultTransformFlag,
            ImmutableArray <byte> transforms,
            ref int position,
            out TypeSymbol result
            )
        {
            TypeWithAnnotations oldElementType = ElementTypeWithAnnotations;
            TypeWithAnnotations newElementType;

            if (
                !oldElementType.ApplyNullableTransforms(
                    defaultTransformFlag,
                    transforms,
                    ref position,
                    out newElementType
                    )
                )
            {
                result = this;
                return(false);
            }

            result = WithElementType(newElementType);
            return(true);
        }