// Token: 0x06002027 RID: 8231 RVA: 0x00095D40 File Offset: 0x00093F40
        internal override void Copy(BamlRecord record)
        {
            base.Copy(record);
            BamlStaticResourceIdRecord bamlStaticResourceIdRecord = (BamlStaticResourceIdRecord)record;

            bamlStaticResourceIdRecord._staticResourceId = this._staticResourceId;
        }
Esempio n. 2
0
        /// <summary> 
        /// Read the node that stores an Id reference to StaticResource records stored in the
        /// front loaded section within the deferred content section in Baml 
        /// </summary>
        protected virtual void ReadStaticResourceIdRecord(
            BamlStaticResourceIdRecord bamlStaticResourceIdRecord)
        { 
            // Find the StaticResourceValue for the given Id
            object value = GetStaticResourceFromId(bamlStaticResourceIdRecord.StaticResourceId); 
 
            // Push a StaticResourceHolder onto the context. This is to be able to pass the
            // PrefetchedValue through to StaticResourceExtension.ProvideValueInternal. 
            PushContext(ReaderFlags.ClrObject | ReaderFlags.NeedToAddToTree, value, null, 0);

            // Process the end record
            ReadElementEndRecord(true); 
        }