Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- DbReferenceCollection.cs
- SoapHttpTransportImporter.cs
- OdbcConnectionHandle.cs
- TextSchema.cs
- WsdlInspector.cs
- NavigationWindowAutomationPeer.cs
- CodeDelegateCreateExpression.cs
- BitmapEffectvisualstate.cs
- RijndaelManagedTransform.cs
- ResXBuildProvider.cs
- SubMenuStyle.cs
- AddIn.cs
- keycontainerpermission.cs
- ObjectItemAssemblyLoader.cs
- milexports.cs
- DbProviderFactories.cs
- InvalidCommandTreeException.cs
- ClusterRegistryConfigurationProvider.cs
- ProcessExitedException.cs
- WorkflowItemPresenter.cs
- ListenerChannelContext.cs
- FormsAuthenticationConfiguration.cs
- ToolStripComboBox.cs
- Typeface.cs
- BigInt.cs
- CompilerTypeWithParams.cs
- SecurityChannel.cs
- TypeLoadException.cs
- OneWayElement.cs
- ViewStateException.cs
- coordinatorfactory.cs
- SystemIcons.cs
- SizeIndependentAnimationStorage.cs
- FocusTracker.cs
- TreeView.cs
- BaseTreeIterator.cs
- TemplateNodeContextMenu.cs
- CategoryGridEntry.cs
- TreeNodeStyleCollection.cs
- WebRequestModuleElement.cs
- ACL.cs
- TableLayoutSettings.cs
- ColorIndependentAnimationStorage.cs
- DateTimeFormatInfo.cs
- WorkflowViewStateService.cs
- ClientTargetCollection.cs
- NamedElement.cs
- PropagatorResult.cs
- LoadGrammarCompletedEventArgs.cs
- MLangCodePageEncoding.cs
- EndpointAddressProcessor.cs
- RuleSettings.cs
- DisplayClaim.cs
- SerializationStore.cs
- versioninfo.cs
- DataExpression.cs
- ListViewDeleteEventArgs.cs
- TextChange.cs
- PageVisual.cs
- VarInfo.cs
- ProxyGenerator.cs
- ReadOnlyMetadataCollection.cs
- EntityDataSourceContainerNameConverter.cs
- UnSafeCharBuffer.cs
- ThemeableAttribute.cs
- CurrencyWrapper.cs
- Point.cs
- DoubleMinMaxAggregationOperator.cs
- UnsafeCollabNativeMethods.cs
- ReaderWriterLockWrapper.cs
- ControlBuilderAttribute.cs
- StreamResourceInfo.cs
- CompiledQueryCacheEntry.cs
- DispatcherTimer.cs
- storepermissionattribute.cs
- InOutArgument.cs
- FilteredSchemaElementLookUpTable.cs
- ChtmlCommandAdapter.cs
- CallTemplateAction.cs
- RuleInfoComparer.cs
- BaseDataList.cs
- SortDescriptionCollection.cs
- NameTable.cs
- MetadataUtilsSmi.cs
- SqlUtils.cs
- SqlResolver.cs
- IsolatedStoragePermission.cs
- HttpConfigurationContext.cs
- counter.cs
- DataViewSettingCollection.cs
- Ops.cs
- Header.cs
- EditorPartCollection.cs
- ZipFileInfo.cs
- EventData.cs
- XmlILOptimizerVisitor.cs
- SectionVisual.cs
- BooleanKeyFrameCollection.cs
- DaylightTime.cs
- BuildProviderAppliesToAttribute.cs