Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SettingsPropertyValue.cs
- PageContent.cs
- SplitterCancelEvent.cs
- DelegatingTypeDescriptionProvider.cs
- EntitySqlQueryState.cs
- Convert.cs
- elementinformation.cs
- PartialList.cs
- HtmlMeta.cs
- LineServicesCallbacks.cs
- XmlRawWriter.cs
- TextBreakpoint.cs
- HyperlinkAutomationPeer.cs
- Predicate.cs
- BitmapEffectDrawing.cs
- DataBindingList.cs
- ProfileInfo.cs
- SelectionRange.cs
- XamlDebuggerXmlReader.cs
- SortAction.cs
- TextOptions.cs
- NamespaceMapping.cs
- DateTimeOffset.cs
- xmlglyphRunInfo.cs
- GridViewDeleteEventArgs.cs
- PasswordDeriveBytes.cs
- MethodExecutor.cs
- WebPartManagerInternals.cs
- ReferencedType.cs
- CurrencyManager.cs
- FontNamesConverter.cs
- XPathNavigatorKeyComparer.cs
- CircleHotSpot.cs
- DecoderReplacementFallback.cs
- InvalidDocumentContentsException.cs
- SqlDependency.cs
- HeaderPanel.cs
- IArgumentProvider.cs
- EventLogger.cs
- ApplicationSecurityManager.cs
- DataSourceExpression.cs
- DataGridViewColumnCollection.cs
- RecognizerInfo.cs
- SystemIPv6InterfaceProperties.cs
- AccessibleObject.cs
- ApplicationGesture.cs
- SafeNativeMethods.cs
- UTF7Encoding.cs
- CodeCastExpression.cs
- Choices.cs
- PartialTrustVisibleAssembly.cs
- QueryOperator.cs
- XmlSerializableWriter.cs
- ProfessionalColorTable.cs
- ParserContext.cs
- AdRotator.cs
- ByteStack.cs
- TypeUnloadedException.cs
- SerializationStore.cs
- CompositeControl.cs
- ChtmlTextBoxAdapter.cs
- ViewCellRelation.cs
- GifBitmapEncoder.cs
- AuthenticationConfig.cs
- TypeElement.cs
- WebPartRestoreVerb.cs
- IntranetCredentialPolicy.cs
- SqlMultiplexer.cs
- SystemException.cs
- EdmSchemaAttribute.cs
- Mouse.cs
- CompilerInfo.cs
- GroupAggregateExpr.cs
- DataAdapter.cs
- PolyQuadraticBezierSegment.cs
- DATA_BLOB.cs
- ScriptControlManager.cs
- ScriptMethodAttribute.cs
- PermissionToken.cs
- WebControlParameterProxy.cs
- TextDecorationCollectionConverter.cs
- UInt16Storage.cs
- ChildDocumentBlock.cs
- SchemaTypeEmitter.cs
- ControlAdapter.cs
- CodeAttributeDeclarationCollection.cs
- EntitySqlException.cs
- XmlChildEnumerator.cs
- GradientStopCollection.cs
- _LoggingObject.cs
- FactoryGenerator.cs
- MultipleViewProviderWrapper.cs
- ToolStripDropDownButton.cs
- VBIdentifierName.cs
- FocusChangedEventArgs.cs
- SafeArrayRankMismatchException.cs
- XmlTypeAttribute.cs
- x509utils.cs
- ContentFilePart.cs
- NamedObject.cs