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
- CodeExpressionCollection.cs
- Expression.cs
- RowParagraph.cs
- CallContext.cs
- DeviceSpecificChoice.cs
- MbpInfo.cs
- FormViewUpdatedEventArgs.cs
- Message.cs
- AccessDataSource.cs
- SymbolMethod.cs
- CounterSample.cs
- RemoteTokenFactory.cs
- VisualBrush.cs
- WorkflowViewManager.cs
- LicenseProviderAttribute.cs
- CounterSet.cs
- SecurityKeyIdentifier.cs
- XmlSchemaSubstitutionGroup.cs
- ArrayConverter.cs
- StylusPointProperty.cs
- SHA512Cng.cs
- TraceSource.cs
- AutomationIdentifier.cs
- PictureBox.cs
- OneToOneMappingSerializer.cs
- SelectorAutomationPeer.cs
- ExtenderControl.cs
- XLinq.cs
- StrokeSerializer.cs
- ListContractAdapter.cs
- TraceHandler.cs
- AsymmetricKeyExchangeDeformatter.cs
- WindowsFormsHelpers.cs
- ReadOnlyCollectionBase.cs
- SafeLibraryHandle.cs
- X509Certificate2Collection.cs
- SiteMapNodeCollection.cs
- WeakEventManager.cs
- ListViewItem.cs
- RuntimeConfig.cs
- XmlSchemaInclude.cs
- XmlChildEnumerator.cs
- DiscoveryReference.cs
- RightNameExpirationInfoPair.cs
- TextParagraphView.cs
- UnsafeNativeMethods.cs
- ListViewItem.cs
- RectAnimationBase.cs
- SuppressMessageAttribute.cs
- UnionQueryOperator.cs
- ByteArrayHelperWithString.cs
- InArgumentConverter.cs
- DataTableMapping.cs
- Border.cs
- CancelEventArgs.cs
- QilXmlReader.cs
- RegexCompilationInfo.cs
- BitmapSource.cs
- SystemUdpStatistics.cs
- TextChangedEventArgs.cs
- TextEffect.cs
- XmlAttributeAttribute.cs
- DesignerSerializerAttribute.cs
- SqlNotificationEventArgs.cs
- CodeSubDirectoriesCollection.cs
- StateMachineHistory.cs
- ButtonBase.cs
- SecurityTokenProvider.cs
- DataPagerField.cs
- CharacterHit.cs
- MenuRendererClassic.cs
- ChoiceConverter.cs
- ResourceFallbackManager.cs
- BlockCollection.cs
- documentsequencetextcontainer.cs
- XmlSchemaComplexContent.cs
- OleDbStruct.cs
- SqlBulkCopyColumnMappingCollection.cs
- TransformPattern.cs
- ProcessInfo.cs
- PaintValueEventArgs.cs
- InteropExecutor.cs
- ContentOperations.cs
- StringAnimationUsingKeyFrames.cs
- ContractBase.cs
- SByteConverter.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- InkCanvasInnerCanvas.cs
- ApplicationInfo.cs
- Misc.cs
- JsonUriDataContract.cs
- WebServiceClientProxyGenerator.cs
- XmlCharCheckingWriter.cs
- BindingCollection.cs
- UIntPtr.cs
- ThreadAbortException.cs
- JournalNavigationScope.cs
- CoreSwitches.cs
- CreateInstanceBinder.cs
- ExpressionEvaluator.cs