Exemple #1
0
        private TType DecodeGenericTypeInstance(ref BlobReader blobReader)
        {
            TType genericType            = DecodeType(ref blobReader);
            ImmutableArray <TType> types = DecodeTypeSequence(ref blobReader);

            return(_provider.GetGenericInstance(genericType, types));
        }
        // Decodes a generic type instantiation encoded as the generic type followed by the types used to instantiate it.
        private static TType DecodeGenericTypeInstance <TType>(ref BlobReader blobReader, ISignatureTypeProvider <TType> provider)
        {
            TType genericType            = DecodeType(ref blobReader, provider);
            ImmutableArray <TType> types = DecodeTypes(ref blobReader, provider);

            return(provider.GetGenericInstance(genericType, types));
        }