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
- SeparatorAutomationPeer.cs
- GetCertificateRequest.cs
- MemberInfoSerializationHolder.cs
- ViewManager.cs
- DetailsViewRow.cs
- GlobalItem.cs
- HttpStreams.cs
- StorageEntityTypeMapping.cs
- BrushMappingModeValidation.cs
- ContentWrapperAttribute.cs
- HttpCookie.cs
- XmlText.cs
- ObjectItemNoOpAssemblyLoader.cs
- ResourceExpressionBuilder.cs
- BufferModesCollection.cs
- ScrollItemProviderWrapper.cs
- SingleObjectCollection.cs
- SmtpFailedRecipientsException.cs
- CompilationLock.cs
- CustomDictionarySources.cs
- MoveSizeWinEventHandler.cs
- ProtocolsConfiguration.cs
- WindowPattern.cs
- IImplicitResourceProvider.cs
- FormsAuthenticationUserCollection.cs
- SiteOfOriginPart.cs
- Math.cs
- CustomTypeDescriptor.cs
- TaiwanLunisolarCalendar.cs
- EpmAttributeNameBuilder.cs
- InkCanvasSelectionAdorner.cs
- ComponentRenameEvent.cs
- Logging.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ZipFileInfoCollection.cs
- NavigationService.cs
- WeakReferenceList.cs
- ConfigurationSettings.cs
- Rotation3D.cs
- CookieParameter.cs
- XmlBinaryReader.cs
- StyleXamlTreeBuilder.cs
- XmlReaderSettings.cs
- XsdDuration.cs
- StaticResourceExtension.cs
- RoleManagerEventArgs.cs
- HMACSHA384.cs
- XmlSignatureManifest.cs
- SymbolPair.cs
- ConstructorBuilder.cs
- SqlSupersetValidator.cs
- EntityKey.cs
- TextEditorTables.cs
- SecurityDocument.cs
- Cursors.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ItemsControl.cs
- UInt16.cs
- XmlSchemaComplexContent.cs
- Stylus.cs
- SchemaTableOptionalColumn.cs
- mediaclock.cs
- WebPartTracker.cs
- PackageFilter.cs
- HighlightVisual.cs
- RequestCacheValidator.cs
- MouseButtonEventArgs.cs
- AxisAngleRotation3D.cs
- Panel.cs
- DataSourceHelper.cs
- HeaderElement.cs
- AsymmetricAlgorithm.cs
- FileDetails.cs
- OdbcCommand.cs
- HeaderElement.cs
- CustomCategoryAttribute.cs
- Process.cs
- ServiceAuthorizationElement.cs
- SqlAliasesReferenced.cs
- Literal.cs
- DesignerLoader.cs
- FontStyles.cs
- SqlNodeAnnotation.cs
- SelectionChangedEventArgs.cs
- TableHeaderCell.cs
- GeneralTransform2DTo3D.cs
- AdapterUtil.cs
- BinaryCommonClasses.cs
- XmlObjectSerializerReadContextComplexJson.cs
- Rect.cs
- sortedlist.cs
- SchemaObjectWriter.cs
- MailWebEventProvider.cs
- FontCacheLogic.cs
- login.cs
- PopOutPanel.cs
- MenuAdapter.cs
- DecoderExceptionFallback.cs
- ValidatingPropertiesEventArgs.cs
- XmlQueryStaticData.cs