Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / WhitespaceRule.cs / 1305376 / WhitespaceRule.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //[....] //----------------------------------------------------------------------------- using System.Diagnostics; using System.IO; using System.Xml.Xsl.Runtime; namespace System.Xml.Xsl.Qil { ////// Data structure for storing whitespace rules generated by xsl:strip-space and xsl:preserve-space /// internal class WhitespaceRule { private string localName; private string namespaceName; private bool preserveSpace; ////// Allow derived classes to construct empty whitespace rule. /// protected WhitespaceRule() { } ////// Construct new whitespace rule. /// public WhitespaceRule(string localName, string namespaceName, bool preserveSpace) { Init(localName, namespaceName, preserveSpace); } ////// Initialize whitespace rule after it's been constructed. /// protected void Init(string localName, string namespaceName, bool preserveSpace) { this.localName = localName; this.namespaceName = namespaceName; this.preserveSpace = preserveSpace; } ////// Local name of the element. /// public string LocalName { get { return localName; } set { localName = value; } } ////// Namespace name (uri) of the element. /// public string NamespaceName { get { return namespaceName; } set { namespaceName = value; } } ////// True, if this element is whitespace-preserving. /// False, if this element is whitespace-stripping. /// public bool PreserveSpace { get { return preserveSpace; } } ////// Serialize the object to BinaryWriter. /// public void GetObjectData(XmlQueryDataWriter writer) { Debug.Assert(this.GetType() == typeof(WhitespaceRule), "Serialization of WhitespaceRule subclasses is not implemented"); // string localName; writer.WriteStringQ(localName); // string namespaceName; writer.WriteStringQ(namespaceName); // bool preserveSpace; writer.Write(preserveSpace); } ////// Deserialize the object from BinaryReader. /// public WhitespaceRule(XmlQueryDataReader reader) { // string localName; this.localName = reader.ReadStringQ(); // string namespaceName; this.namespaceName = reader.ReadStringQ(); // bool preserveSpace; this.preserveSpace = reader.ReadBoolean(); } } } // 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
- SocketAddress.cs
- cryptoapiTransform.cs
- ObjectDataSourceWizardForm.cs
- _AutoWebProxyScriptEngine.cs
- SchemaImporterExtensionsSection.cs
- DataServiceException.cs
- MissingSatelliteAssemblyException.cs
- WindowsSecurityToken.cs
- DataGridViewButtonColumn.cs
- DelayedRegex.cs
- XmlSortKeyAccumulator.cs
- EnumMember.cs
- ArraySegment.cs
- ColorMatrix.cs
- EFColumnProvider.cs
- IChannel.cs
- QilXmlReader.cs
- XamlStackWriter.cs
- MatcherBuilder.cs
- OptionalColumn.cs
- PersistenceMetadataNamespace.cs
- StructuredProperty.cs
- DataListItemCollection.cs
- NameNode.cs
- LinearKeyFrames.cs
- ColumnMapProcessor.cs
- ExtensionSimplifierMarkupObject.cs
- XmlTextEncoder.cs
- SqlGenerator.cs
- WsdlHelpGeneratorElement.cs
- XPathNavigatorKeyComparer.cs
- FileSystemInfo.cs
- AutoFocusStyle.xaml.cs
- NTAccount.cs
- invalidudtexception.cs
- HttpModuleCollection.cs
- RelationshipFixer.cs
- XmlSignatureManifest.cs
- DispatcherObject.cs
- log.cs
- IsolatedStoragePermission.cs
- InvalidWMPVersionException.cs
- HttpModuleAction.cs
- CollectionChangeEventArgs.cs
- TableStyle.cs
- Point3DCollection.cs
- CompModSwitches.cs
- MaskInputRejectedEventArgs.cs
- AppDomainAttributes.cs
- TextSerializer.cs
- XhtmlBasicCalendarAdapter.cs
- SocketStream.cs
- ThumbAutomationPeer.cs
- MessageVersion.cs
- SqlDependencyListener.cs
- HtmlPhoneCallAdapter.cs
- AddInIpcChannel.cs
- CookielessHelper.cs
- InfoCardArgumentException.cs
- SimpleType.cs
- LambdaSerializationException.cs
- Image.cs
- RowsCopiedEventArgs.cs
- XmlAnyAttributeAttribute.cs
- LambdaCompiler.Address.cs
- WCFServiceClientProxyGenerator.cs
- PlatformNotSupportedException.cs
- ChtmlTextWriter.cs
- CurrentChangedEventManager.cs
- ImageCodecInfo.cs
- BitmapFrame.cs
- FixedNode.cs
- FormatterServices.cs
- RequestCachePolicy.cs
- DataServiceContext.cs
- SignatureResourceHelper.cs
- TextParentUndoUnit.cs
- GrabHandleGlyph.cs
- XMLDiffLoader.cs
- SQLInt16Storage.cs
- CodeGeneratorAttribute.cs
- BamlBinaryWriter.cs
- RecordConverter.cs
- QfeChecker.cs
- XmlNodeWriter.cs
- DocumentGridContextMenu.cs
- XamlTypeMapper.cs
- ActivityContext.cs
- _UriTypeConverter.cs
- DataGridViewSelectedRowCollection.cs
- WpfPayload.cs
- Rectangle.cs
- IPGlobalProperties.cs
- ToolboxItemCollection.cs
- KeyTimeConverter.cs
- DbParameterCollection.cs
- WebPartUtil.cs
- LogFlushAsyncResult.cs
- PrtTicket_Public.cs
- WmlMobileTextWriter.cs