Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / WhitespaceRule.cs / 5 / 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. //------------------------------------------------------------------------------ //// 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
- HtmlMeta.cs
- ControlEvent.cs
- PhysicalFontFamily.cs
- DefaultAsyncDataDispatcher.cs
- PersistenceParticipant.cs
- SafeFindHandle.cs
- QuaternionRotation3D.cs
- ImageMapEventArgs.cs
- Match.cs
- DataFormats.cs
- DescendantQuery.cs
- TreeWalkHelper.cs
- FileClassifier.cs
- FunctionNode.cs
- DataBinding.cs
- NamedObject.cs
- SortQueryOperator.cs
- GridView.cs
- XmlMtomWriter.cs
- FormsAuthenticationUser.cs
- ScriptResourceMapping.cs
- DataGridViewSelectedColumnCollection.cs
- FirstQueryOperator.cs
- FontStretches.cs
- DataGridViewColumnCollectionEditor.cs
- Selection.cs
- InstanceCollisionException.cs
- BaseComponentEditor.cs
- HttpApplicationFactory.cs
- FigureParaClient.cs
- GeometryHitTestParameters.cs
- TextServicesCompartmentEventSink.cs
- XmlCharCheckingReader.cs
- HttpCacheParams.cs
- _OSSOCK.cs
- CompressStream.cs
- SqlNamer.cs
- XsdSchemaFileEditor.cs
- sqlnorm.cs
- BorderGapMaskConverter.cs
- XmlElementList.cs
- CustomAttributeBuilder.cs
- _BufferOffsetSize.cs
- ElementProxy.cs
- InstanceValue.cs
- SamlDelegatingWriter.cs
- SchemaDeclBase.cs
- RuntimeHandles.cs
- InternalResources.cs
- IsolatedStorage.cs
- LogManagementAsyncResult.cs
- PenContexts.cs
- SynchronizationLockException.cs
- CodeSubDirectoriesCollection.cs
- CacheMemory.cs
- XmlElementList.cs
- TransformPattern.cs
- FormsAuthenticationUser.cs
- ReflectionPermission.cs
- EtwTrace.cs
- XamlPoint3DCollectionSerializer.cs
- CodeSnippetCompileUnit.cs
- TextEffectResolver.cs
- DesignerLoader.cs
- CategoryGridEntry.cs
- SR.cs
- cryptoapiTransform.cs
- FontDialog.cs
- MachineSettingsSection.cs
- RelationshipWrapper.cs
- SolidColorBrush.cs
- _StreamFramer.cs
- BackEase.cs
- ImageIndexConverter.cs
- DBNull.cs
- RenderingEventArgs.cs
- WebPartConnectionsDisconnectVerb.cs
- TableParagraph.cs
- HttpRawResponse.cs
- wgx_render.cs
- GcSettings.cs
- DoubleKeyFrameCollection.cs
- Classification.cs
- WebBrowser.cs
- ControlFilterExpression.cs
- ToolStripContentPanel.cs
- SQLSingle.cs
- SeekableReadStream.cs
- FileDialogCustomPlacesCollection.cs
- IndicShape.cs
- ToolbarAUtomationPeer.cs
- AlternateView.cs
- EndpointAddressMessageFilter.cs
- AssociationTypeEmitter.cs
- DatagridviewDisplayedBandsData.cs
- WaitingCursor.cs
- HwndSourceKeyboardInputSite.cs
- PipeConnection.cs
- HopperCache.cs
- EmptyStringExpandableObjectConverter.cs