Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / OutKeywords.cs / 1 / OutKeywords.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Xsl.XsltOld { using Res = System.Xml.Utils.Res; using System; using System.Diagnostics; using System.Xml; internal class OutKeywords { #if DEBUG XmlNameTable _NameTable; #endif internal OutKeywords(XmlNameTable nameTable) { Debug.Assert(nameTable != null); #if DEBUG _NameTable = nameTable; #endif _AtomEmpty = nameTable.Add(string.Empty); _AtomLang = nameTable.Add(Keywords.s_Lang); _AtomSpace = nameTable.Add(Keywords.s_Space); _AtomXmlns = nameTable.Add(Keywords.s_Xmlns); _AtomXml = nameTable.Add(Keywords.s_Xml); _AtomXmlNamespace = nameTable.Add(Keywords.s_XmlNamespace); _AtomXmlnsNamespace = nameTable.Add(Keywords.s_XmlnsNamespace); CheckKeyword(_AtomEmpty); CheckKeyword(_AtomLang); CheckKeyword(_AtomSpace); CheckKeyword(_AtomXmlns); CheckKeyword(_AtomXml); CheckKeyword(_AtomXmlNamespace); CheckKeyword(_AtomXmlnsNamespace); } private string _AtomEmpty; private string _AtomLang; private string _AtomSpace; private string _AtomXmlns; private string _AtomXml; private string _AtomXmlNamespace; private string _AtomXmlnsNamespace; internal string Empty { get { CheckKeyword(_AtomEmpty); return _AtomEmpty; } } internal string Lang { get { CheckKeyword(_AtomLang); return _AtomLang; } } internal string Space { get { CheckKeyword(_AtomSpace); return _AtomSpace; } } internal string Xmlns { get { CheckKeyword(_AtomXmlns); return _AtomXmlns; } } internal string Xml { get { CheckKeyword(_AtomXml); return _AtomXml; } } internal string XmlNamespace { get { CheckKeyword(_AtomXmlNamespace); return _AtomXmlNamespace; // http://www.w3.org/XML/1998/namespace } } internal string XmlnsNamespace { get { CheckKeyword(_AtomXmlnsNamespace); return _AtomXmlnsNamespace; // http://www.w3.org/XML/2000/xmlns } } [System.Diagnostics.Conditional("DEBUG")] private void CheckKeyword(string keyword) { #if DEBUG Debug.Assert(keyword != null); Debug.Assert((object) keyword == (object) _NameTable.Get(keyword)); #endif } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Xsl.XsltOld { using Res = System.Xml.Utils.Res; using System; using System.Diagnostics; using System.Xml; internal class OutKeywords { #if DEBUG XmlNameTable _NameTable; #endif internal OutKeywords(XmlNameTable nameTable) { Debug.Assert(nameTable != null); #if DEBUG _NameTable = nameTable; #endif _AtomEmpty = nameTable.Add(string.Empty); _AtomLang = nameTable.Add(Keywords.s_Lang); _AtomSpace = nameTable.Add(Keywords.s_Space); _AtomXmlns = nameTable.Add(Keywords.s_Xmlns); _AtomXml = nameTable.Add(Keywords.s_Xml); _AtomXmlNamespace = nameTable.Add(Keywords.s_XmlNamespace); _AtomXmlnsNamespace = nameTable.Add(Keywords.s_XmlnsNamespace); CheckKeyword(_AtomEmpty); CheckKeyword(_AtomLang); CheckKeyword(_AtomSpace); CheckKeyword(_AtomXmlns); CheckKeyword(_AtomXml); CheckKeyword(_AtomXmlNamespace); CheckKeyword(_AtomXmlnsNamespace); } private string _AtomEmpty; private string _AtomLang; private string _AtomSpace; private string _AtomXmlns; private string _AtomXml; private string _AtomXmlNamespace; private string _AtomXmlnsNamespace; internal string Empty { get { CheckKeyword(_AtomEmpty); return _AtomEmpty; } } internal string Lang { get { CheckKeyword(_AtomLang); return _AtomLang; } } internal string Space { get { CheckKeyword(_AtomSpace); return _AtomSpace; } } internal string Xmlns { get { CheckKeyword(_AtomXmlns); return _AtomXmlns; } } internal string Xml { get { CheckKeyword(_AtomXml); return _AtomXml; } } internal string XmlNamespace { get { CheckKeyword(_AtomXmlNamespace); return _AtomXmlNamespace; // http://www.w3.org/XML/1998/namespace } } internal string XmlnsNamespace { get { CheckKeyword(_AtomXmlnsNamespace); return _AtomXmlnsNamespace; // http://www.w3.org/XML/2000/xmlns } } [System.Diagnostics.Conditional("DEBUG")] private void CheckKeyword(string keyword) { #if DEBUG Debug.Assert(keyword != null); Debug.Assert((object) keyword == (object) _NameTable.Get(keyword)); #endif } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TreeViewImageIndexConverter.cs
- EntityEntry.cs
- ExpressionCopier.cs
- ContentElement.cs
- GroupBox.cs
- Component.cs
- ToolStripLabel.cs
- GeometryValueSerializer.cs
- DataRowComparer.cs
- PDBReader.cs
- ExpressionVisitor.cs
- ClientScriptManagerWrapper.cs
- UrlMappingsModule.cs
- SynchronizedReadOnlyCollection.cs
- AgileSafeNativeMemoryHandle.cs
- BlockUIContainer.cs
- webclient.cs
- EdmItemCollection.cs
- WebPartManager.cs
- HttpDictionary.cs
- SortedDictionary.cs
- IntegerValidator.cs
- ListViewItem.cs
- InfiniteTimeSpanConverter.cs
- HttpRequest.cs
- BitmapInitialize.cs
- HtmlElementErrorEventArgs.cs
- ListItem.cs
- WCFModelStrings.Designer.cs
- ExtendedProtectionPolicyElement.cs
- HttpWebRequestElement.cs
- WindowsToolbar.cs
- StatusBar.cs
- HttpCachePolicy.cs
- ToolStripAdornerWindowService.cs
- _DisconnectOverlappedAsyncResult.cs
- DataGridViewComboBoxCell.cs
- EntityEntry.cs
- FileUpload.cs
- MobileCapabilities.cs
- SynchronizedMessageSource.cs
- WindowsListViewItemCheckBox.cs
- WebBrowserPermission.cs
- LeaseManager.cs
- BitmapEffectGeneralTransform.cs
- EntityDataSourceContextDisposingEventArgs.cs
- VariableModifiersHelper.cs
- WmfPlaceableFileHeader.cs
- CommonGetThemePartSize.cs
- FamilyMapCollection.cs
- ExpandCollapseProviderWrapper.cs
- AssemblyCacheEntry.cs
- TabControl.cs
- StackOverflowException.cs
- SiteMapNode.cs
- PageRanges.cs
- CommandEventArgs.cs
- RubberbandSelector.cs
- COM2ExtendedUITypeEditor.cs
- DelegatingChannelListener.cs
- ParenthesizePropertyNameAttribute.cs
- MatrixAnimationBase.cs
- WSTransactionSection.cs
- HuffModule.cs
- Lease.cs
- Formatter.cs
- MsmqOutputMessage.cs
- PackageRelationship.cs
- GCHandleCookieTable.cs
- ThrowHelper.cs
- LeaseManager.cs
- DetailsViewUpdateEventArgs.cs
- SoapElementAttribute.cs
- TdsEnums.cs
- ImmutablePropertyDescriptorGridEntry.cs
- MexTcpBindingElement.cs
- ProgressPage.cs
- PropertyChangedEventArgs.cs
- Parallel.cs
- CollectionChangedEventManager.cs
- TraceHandlerErrorFormatter.cs
- EventSourceCreationData.cs
- FlowDocumentFormatter.cs
- ProcessStartInfo.cs
- EventDescriptor.cs
- HtmlInputCheckBox.cs
- KeyFrames.cs
- SecurityManager.cs
- ThreadSafeList.cs
- RuntimeHandles.cs
- MetaChildrenColumn.cs
- AddInDeploymentState.cs
- TextRangeSerialization.cs
- DecimalFormatter.cs
- DbParameterCollectionHelper.cs
- PixelFormats.cs
- InertiaRotationBehavior.cs
- CharEntityEncoderFallback.cs
- AxHost.cs
- ClientType.cs