Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Markup / Baml2006 / Baml2006ReaderFrame.cs / 1305600 / Baml2006ReaderFrame.cs
using System; using System.Collections.Generic; using System.Xaml; using System.Diagnostics; using MS.Internal.Xaml.Context; namespace System.Windows.Baml2006 { internal class Baml2006ReaderFrame : XamlFrame { protected Dictionary_namespaces; public Baml2006ReaderFrame() { DelayedConnectionId = -1; } public Baml2006ReaderFrame(Baml2006ReaderFrame source) { XamlType = source.XamlType; Member = source.Member; if (source._namespaces != null) { _namespaces = new Dictionary (source._namespaces); } } public override XamlFrame Clone() { return new Baml2006ReaderFrame(this); } public XamlType XamlType { get; set; } public XamlMember Member { get; set; } public KeyRecord Key { get; set; } public int DelayedConnectionId { get; set; } public XamlMember ContentProperty { get; set; } public bool FreezeFreezables { get; set; } public void AddNamespace(string prefix, string xamlNs) { if (null == _namespaces) { _namespaces = new Dictionary (); } _namespaces.Add(prefix, xamlNs); } public void SetNamespaces(Dictionary namespaces) { _namespaces = namespaces; } public bool TryGetNamespaceByPrefix(string prefix, out string xamlNs) { if (_namespaces != null && _namespaces.TryGetValue(prefix, out xamlNs)) { return true; } xamlNs = null; return false; } public bool TryGetPrefixByNamespace(string xamlNs, out string prefix) { if (_namespaces != null) { foreach (KeyValuePair pair in _namespaces) { if (pair.Value == xamlNs) { prefix = pair.Key; return true; } } } prefix = null; return false; } public override void Reset() { XamlType = null; Member = null; if (_namespaces != null) { _namespaces.Clear(); } Flags = Baml2006ReaderFrameFlags.None; LineNumber = 0; LineOffset = 0; IsDeferredContent = false; Key = null; DelayedConnectionId = -1; ContentProperty = null; } public Baml2006ReaderFrameFlags Flags { get; set; } public int LineNumber { get; set; } public int LineOffset { get; set; } public bool IsDeferredContent { get; set; } } internal enum Baml2006ReaderFrameFlags:byte { None, IsImplict, HasImplicitProperty } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; using System.Collections.Generic; using System.Xaml; using System.Diagnostics; using MS.Internal.Xaml.Context; namespace System.Windows.Baml2006 { internal class Baml2006ReaderFrame : XamlFrame { protected Dictionary _namespaces; public Baml2006ReaderFrame() { DelayedConnectionId = -1; } public Baml2006ReaderFrame(Baml2006ReaderFrame source) { XamlType = source.XamlType; Member = source.Member; if (source._namespaces != null) { _namespaces = new Dictionary (source._namespaces); } } public override XamlFrame Clone() { return new Baml2006ReaderFrame(this); } public XamlType XamlType { get; set; } public XamlMember Member { get; set; } public KeyRecord Key { get; set; } public int DelayedConnectionId { get; set; } public XamlMember ContentProperty { get; set; } public bool FreezeFreezables { get; set; } public void AddNamespace(string prefix, string xamlNs) { if (null == _namespaces) { _namespaces = new Dictionary (); } _namespaces.Add(prefix, xamlNs); } public void SetNamespaces(Dictionary namespaces) { _namespaces = namespaces; } public bool TryGetNamespaceByPrefix(string prefix, out string xamlNs) { if (_namespaces != null && _namespaces.TryGetValue(prefix, out xamlNs)) { return true; } xamlNs = null; return false; } public bool TryGetPrefixByNamespace(string xamlNs, out string prefix) { if (_namespaces != null) { foreach (KeyValuePair pair in _namespaces) { if (pair.Value == xamlNs) { prefix = pair.Key; return true; } } } prefix = null; return false; } public override void Reset() { XamlType = null; Member = null; if (_namespaces != null) { _namespaces.Clear(); } Flags = Baml2006ReaderFrameFlags.None; LineNumber = 0; LineOffset = 0; IsDeferredContent = false; Key = null; DelayedConnectionId = -1; ContentProperty = null; } public Baml2006ReaderFrameFlags Flags { get; set; } public int LineNumber { get; set; } public int LineOffset { get; set; } public bool IsDeferredContent { get; set; } } internal enum Baml2006ReaderFrameFlags:byte { None, IsImplict, HasImplicitProperty } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CorrelationToken.cs
- EncryptionUtility.cs
- TableItemProviderWrapper.cs
- StyleSheetRefUrlEditor.cs
- Byte.cs
- CompilerParameters.cs
- DataBinder.cs
- DataServiceHost.cs
- DBSqlParserTable.cs
- Metadata.cs
- SQLDouble.cs
- AxDesigner.cs
- WebPartCollection.cs
- InputReport.cs
- SqlReferenceCollection.cs
- Misc.cs
- QilCloneVisitor.cs
- LockedBorderGlyph.cs
- ComAdminInterfaces.cs
- FormatSettings.cs
- FilterQuery.cs
- DesignerSerializationOptionsAttribute.cs
- HttpListenerPrefixCollection.cs
- DesignerDataTableBase.cs
- AliasGenerator.cs
- DBBindings.cs
- ReadWriteSpinLock.cs
- DataTemplateSelector.cs
- PrimarySelectionAdorner.cs
- DrawingImage.cs
- EmbeddedObject.cs
- TokenFactoryBase.cs
- CodeTypeOfExpression.cs
- RsaSecurityTokenAuthenticator.cs
- PolyBezierSegmentFigureLogic.cs
- StateDesignerConnector.cs
- _ServiceNameStore.cs
- ScopelessEnumAttribute.cs
- TransformGroup.cs
- SamlAuthenticationStatement.cs
- ActivityBindForm.Designer.cs
- InternalConfigRoot.cs
- ControlFilterExpression.cs
- LayoutEvent.cs
- PeerContact.cs
- SqlCacheDependencyDatabaseCollection.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- XsdBuilder.cs
- Point3D.cs
- Registry.cs
- ping.cs
- RelationshipConstraintValidator.cs
- SevenBitStream.cs
- StopStoryboard.cs
- ImportCatalogPart.cs
- DebugView.cs
- MenuItemCollectionEditor.cs
- _ContextAwareResult.cs
- FormViewPagerRow.cs
- BlurBitmapEffect.cs
- Normalization.cs
- ScaleTransform.cs
- CancellationTokenRegistration.cs
- Socket.cs
- AttachedAnnotationChangedEventArgs.cs
- DoubleAverageAggregationOperator.cs
- OdbcFactory.cs
- LoginUtil.cs
- AssemblyInfo.cs
- QuaternionRotation3D.cs
- BaseProcessProtocolHandler.cs
- StylusPointCollection.cs
- EUCJPEncoding.cs
- DesignTimeTemplateParser.cs
- ProtocolImporter.cs
- precedingsibling.cs
- QueryableDataSourceHelper.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- Panel.cs
- AppSettingsExpressionBuilder.cs
- _NestedSingleAsyncResult.cs
- DataGridViewCheckBoxColumn.cs
- FixedFindEngine.cs
- PanelDesigner.cs
- BitStream.cs
- InstancePersistenceContext.cs
- MsmqHostedTransportConfiguration.cs
- DbProviderFactories.cs
- Vector3DValueSerializer.cs
- XPathConvert.cs
- TreePrinter.cs
- XmlSchemaAttributeGroupRef.cs
- HostedHttpRequestAsyncResult.cs
- Rss20ItemFormatter.cs
- RegexRunner.cs
- DriveInfo.cs
- BufferedOutputStream.cs
- RegisterInfo.cs
- SymmetricAlgorithm.cs
- Psha1DerivedKeyGenerator.cs