Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / WhitespaceRule.cs / 1 / 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
- DataGridViewButtonColumn.cs
- MasterPage.cs
- RoutingEndpointTrait.cs
- XmlHierarchyData.cs
- SiteMapPathDesigner.cs
- ChildDocumentBlock.cs
- _AcceptOverlappedAsyncResult.cs
- CacheSection.cs
- DmlSqlGenerator.cs
- DocumentOrderComparer.cs
- CheckBoxPopupAdapter.cs
- StrokeNodeOperations2.cs
- RuleSettingsCollection.cs
- ManagementScope.cs
- LineVisual.cs
- TCEAdapterGenerator.cs
- CacheSection.cs
- HtmlUtf8RawTextWriter.cs
- Baml2006SchemaContext.cs
- StateMachineHelpers.cs
- SmtpNtlmAuthenticationModule.cs
- OracleDateTime.cs
- DesignerSerializationVisibilityAttribute.cs
- ChannelAcceptor.cs
- ScriptControlManager.cs
- UICuesEvent.cs
- WinEventHandler.cs
- BuildDependencySet.cs
- ConfigurationValue.cs
- CompilerResults.cs
- XmlSchemaParticle.cs
- SettingsPropertyWrongTypeException.cs
- Drawing.cs
- Query.cs
- MenuEventArgs.cs
- processwaithandle.cs
- ConfigurationSectionCollection.cs
- TreeViewEvent.cs
- CodeBlockBuilder.cs
- TaskResultSetter.cs
- WebServiceData.cs
- CodeConditionStatement.cs
- ToolBarButtonDesigner.cs
- OleDbConnectionInternal.cs
- RuntimeConfig.cs
- Screen.cs
- DocumentXmlWriter.cs
- NameValueConfigurationCollection.cs
- NativeCppClassAttribute.cs
- Event.cs
- DataList.cs
- RootProfilePropertySettingsCollection.cs
- ToolStrip.cs
- OrderedDictionary.cs
- HashCryptoHandle.cs
- DateTimeOffsetAdapter.cs
- ReadWriteSpinLock.cs
- HelpHtmlBuilder.cs
- AmbientLight.cs
- followingsibling.cs
- ToolstripProfessionalRenderer.cs
- BitmapEffectGeneralTransform.cs
- WebPartHeaderCloseVerb.cs
- InternalBase.cs
- AuthenticationException.cs
- CanExecuteRoutedEventArgs.cs
- ExpressionBuilder.cs
- TableCell.cs
- TextBoxBase.cs
- EUCJPEncoding.cs
- FormsAuthenticationUser.cs
- DataIdProcessor.cs
- XmlSerializationGeneratedCode.cs
- ManagementNamedValueCollection.cs
- DeclarativeCatalogPart.cs
- SortQueryOperator.cs
- TextElementEditingBehaviorAttribute.cs
- XPathNodeIterator.cs
- CompositeCollectionView.cs
- ContextMenuService.cs
- HtmlTableCellCollection.cs
- ExcludePathInfo.cs
- LockCookie.cs
- XmlNullResolver.cs
- SqlVersion.cs
- LineProperties.cs
- CachedFontFace.cs
- CommandField.cs
- JavaScriptSerializer.cs
- PartialTrustVisibleAssembly.cs
- OdbcConnectionString.cs
- PackageController.cs
- MasterPageBuildProvider.cs
- TextCompositionManager.cs
- RepeaterItemEventArgs.cs
- CachedPathData.cs
- CommandHelpers.cs
- WebPartPersonalization.cs
- SmtpTransport.cs
- OutputWindow.cs