Exemple #1
0
        // Token: 0x06001F7B RID: 8059 RVA: 0x00094C84 File Offset: 0x00092E84
        internal override void Copy(BamlRecord record)
        {
            base.Copy(record);
            BamlPropertyWithConverterRecord bamlPropertyWithConverterRecord = (BamlPropertyWithConverterRecord)record;

            bamlPropertyWithConverterRecord._converterTypeId = this._converterTypeId;
        }
        // Read a Property record, get the current element off the context stack and convert 
        // the string value of the property into a real object using the TypeConverter specified
        // in the property record, rather than the Type's converter. 
        protected virtual void ReadPropertyConverterRecord(BamlPropertyWithConverterRecord bamlPropertyRecord) 
        {
            if (null == CurrentContext || 
                (ReaderFlags.DependencyObject != CurrentContext.ContextType &&
                 ReaderFlags.ClrObject != CurrentContext.ContextType))
            {
                ThrowException(SRID.ParserUnexpInBAML, "Property"); 
            }
 
            ReadPropertyRecordBase(bamlPropertyRecord.Value, bamlPropertyRecord.AttributeId, 
                                   bamlPropertyRecord.ConverterTypeId);
        }