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
- SharedTcpTransportManager.cs
- FocusChangedEventArgs.cs
- CustomSignedXml.cs
- ResourceAttributes.cs
- ExternalFile.cs
- BitmapFrame.cs
- HatchBrush.cs
- DataGridColumnCollection.cs
- UIElement3DAutomationPeer.cs
- SqlWebEventProvider.cs
- FlowDocumentFormatter.cs
- SortExpressionBuilder.cs
- FrameworkElementFactoryMarkupObject.cs
- MemoryRecordBuffer.cs
- ChtmlFormAdapter.cs
- WebExceptionStatus.cs
- DataRow.cs
- HostUtils.cs
- Properties.cs
- SiteOfOriginContainer.cs
- XmlElementList.cs
- SingleTagSectionHandler.cs
- processwaithandle.cs
- EnumerableRowCollectionExtensions.cs
- ProgressBarRenderer.cs
- GridViewColumnHeader.cs
- UnicodeEncoding.cs
- SqlDataSourceCommandEventArgs.cs
- TransformDescriptor.cs
- SharedPersonalizationStateInfo.cs
- unsafenativemethodsother.cs
- OleDbInfoMessageEvent.cs
- NativeBuffer.cs
- ComponentDesigner.cs
- UnionCodeGroup.cs
- PointLightBase.cs
- ProxyWebPart.cs
- CheckBoxList.cs
- ComponentResourceKey.cs
- Keywords.cs
- StaticExtension.cs
- TransformerConfigurationWizardBase.cs
- TextRangeBase.cs
- Variant.cs
- ProgressBarRenderer.cs
- StringValidator.cs
- HebrewCalendar.cs
- Perspective.cs
- CookieProtection.cs
- EnumUnknown.cs
- ZipIOLocalFileBlock.cs
- ColorMap.cs
- CodeAttributeArgument.cs
- MdiWindowListStrip.cs
- RoutedPropertyChangedEventArgs.cs
- StateMachineSubscription.cs
- BooleanFunctions.cs
- TypeUsage.cs
- HealthMonitoringSection.cs
- MenuItem.cs
- storepermission.cs
- FillRuleValidation.cs
- WebMessageFormatHelper.cs
- ConditionCollection.cs
- CommonProperties.cs
- DbProviderFactory.cs
- ActiveXHost.cs
- IgnoreDeviceFilterElementCollection.cs
- DesignTableCollection.cs
- MarkupExtensionParser.cs
- BooleanStorage.cs
- XmlQueryTypeFactory.cs
- StateManagedCollection.cs
- _CacheStreams.cs
- IPCCacheManager.cs
- ReverseComparer.cs
- JsonObjectDataContract.cs
- HttpAsyncResult.cs
- AffineTransform3D.cs
- ConnectorSelectionGlyph.cs
- ToolStripComboBox.cs
- MultiPropertyDescriptorGridEntry.cs
- RelationshipManager.cs
- UrlMappingsModule.cs
- TableHeaderCell.cs
- TemplateControlCodeDomTreeGenerator.cs
- XmlNodeWriter.cs
- UrlMapping.cs
- SpecialTypeDataContract.cs
- SplitterPanel.cs
- BamlMapTable.cs
- GridPatternIdentifiers.cs
- GC.cs
- RoutedCommand.cs
- StatusBar.cs
- SourceElementsCollection.cs
- QilNode.cs
- FloatUtil.cs
- CngUIPolicy.cs
- X509Certificate2Collection.cs