Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- LookupTables.cs
- BasicExpressionVisitor.cs
- WebServiceHandler.cs
- Visual3DCollection.cs
- AlignmentYValidation.cs
- SqlClientPermission.cs
- SequenceNumber.cs
- AuthenticationException.cs
- HTMLTagNameToTypeMapper.cs
- HostingEnvironmentSection.cs
- TemplateControlCodeDomTreeGenerator.cs
- DataTableTypeConverter.cs
- RelationshipFixer.cs
- DiscoveryClientDuplexChannel.cs
- SpeakInfo.cs
- GetLedgerEntryForRecipientRequest.cs
- ScriptControlManager.cs
- filewebrequest.cs
- XPathExpr.cs
- FileAuthorizationModule.cs
- CmsUtils.cs
- InfoCardRSACryptoProvider.cs
- HwndKeyboardInputProvider.cs
- _SslSessionsCache.cs
- SetState.cs
- OletxDependentTransaction.cs
- CharEntityEncoderFallback.cs
- BuildProvider.cs
- SqlBuffer.cs
- ScriptingSectionGroup.cs
- updatecommandorderer.cs
- CipherData.cs
- DNS.cs
- OracleBinary.cs
- DataChangedEventManager.cs
- SqlReferenceCollection.cs
- CodeSubDirectory.cs
- ActivitySurrogate.cs
- IdentityHolder.cs
- ItemCheckedEvent.cs
- QuaternionIndependentAnimationStorage.cs
- ConnectionsZone.cs
- AttributeCollection.cs
- TextContainerChangeEventArgs.cs
- ArraySet.cs
- MenuAdapter.cs
- RegistryPermission.cs
- SelfIssuedAuthProofToken.cs
- ReturnType.cs
- SystemInformation.cs
- PageStatePersister.cs
- TableLayoutPanelResizeGlyph.cs
- RegistryDataKey.cs
- ReadOnlyState.cs
- MessageTraceRecord.cs
- X509ClientCertificateAuthentication.cs
- ScrollViewerAutomationPeer.cs
- AccessibilityHelperForVista.cs
- HtmlInputButton.cs
- DynamicObject.cs
- Point.cs
- HttpPostedFile.cs
- FormsAuthenticationModule.cs
- BasicHttpMessageSecurity.cs
- SerialStream.cs
- MultiBinding.cs
- CalendarButtonAutomationPeer.cs
- FixedTextView.cs
- Scene3D.cs
- IItemProperties.cs
- RegionInfo.cs
- WebPartCollection.cs
- ToolStripArrowRenderEventArgs.cs
- ValueConversionAttribute.cs
- BrowserCapabilitiesFactoryBase.cs
- CommentGlyph.cs
- NumberFormatInfo.cs
- UserPersonalizationStateInfo.cs
- PeerFlooder.cs
- Size3D.cs
- ObfuscateAssemblyAttribute.cs
- ControlBindingsCollection.cs
- ProviderConnectionPointCollection.cs
- ImageClickEventArgs.cs
- CorrelationManager.cs
- DataGridViewTextBoxColumn.cs
- RectangleHotSpot.cs
- TickBar.cs
- NativeCppClassAttribute.cs
- LinqDataSourceUpdateEventArgs.cs
- TextEditorLists.cs
- XmlSchemaException.cs
- MonthCalendar.cs
- KeyPressEvent.cs
- DataGridTablesFactory.cs
- Splitter.cs
- figurelength.cs
- ResourceReader.cs
- ColorContextHelper.cs
- BaseTemplateCodeDomTreeGenerator.cs