Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ItemsChangedEventArgs.cs
- BasePropertyDescriptor.cs
- Bidi.cs
- ICspAsymmetricAlgorithm.cs
- DataServiceProviderMethods.cs
- SqlBulkCopy.cs
- XmlnsCache.cs
- MissingManifestResourceException.cs
- Rect.cs
- AttachedAnnotationChangedEventArgs.cs
- Message.cs
- Script.cs
- OperationBehaviorAttribute.cs
- RegexGroupCollection.cs
- ViewManager.cs
- FilterableAttribute.cs
- ToolStripOverflow.cs
- DelegatingTypeDescriptionProvider.cs
- ExpressionBindingCollection.cs
- BrowserInteropHelper.cs
- DNS.cs
- XmlnsDefinitionAttribute.cs
- CompilerInfo.cs
- EndpointFilterProvider.cs
- WmlValidationSummaryAdapter.cs
- FileDialogCustomPlace.cs
- SortKey.cs
- ParentUndoUnit.cs
- ValueQuery.cs
- TextRangeEditTables.cs
- RelationshipType.cs
- ImpersonationContext.cs
- Page.cs
- ServiceContractListItemList.cs
- ProviderUtil.cs
- ViewGenerator.cs
- newinstructionaction.cs
- BitmapEffectvisualstate.cs
- PointKeyFrameCollection.cs
- FileSystemEventArgs.cs
- XMLUtil.cs
- OrderedDictionaryStateHelper.cs
- ObjectMemberMapping.cs
- ToolBarButton.cs
- ObjectDataSourceMethodEventArgs.cs
- ObjectRef.cs
- SqlDataReader.cs
- PropertyCollection.cs
- ToolStripItemRenderEventArgs.cs
- IndexerNameAttribute.cs
- MobileTextWriter.cs
- NetCodeGroup.cs
- SymbolType.cs
- GridViewColumnCollectionChangedEventArgs.cs
- Encoding.cs
- NavigationHelper.cs
- WebException.cs
- HttpCapabilitiesSectionHandler.cs
- QilTernary.cs
- ClientSettingsSection.cs
- ExpressionCopier.cs
- ControlBuilder.cs
- AutomationPropertyInfo.cs
- WebBrowserDesigner.cs
- XmlChildNodes.cs
- XmlTextReader.cs
- EntityFunctions.cs
- GridViewDeletedEventArgs.cs
- DataTableCollection.cs
- FixedBufferAttribute.cs
- ToolStripPanelRenderEventArgs.cs
- arabicshape.cs
- ToolStripDropDownClosingEventArgs.cs
- QuaternionValueSerializer.cs
- TextEditorTables.cs
- DataGridViewTextBoxColumn.cs
- UniqueTransportManagerRegistration.cs
- HtmlInputControl.cs
- CodeVariableReferenceExpression.cs
- ISessionStateStore.cs
- PseudoWebRequest.cs
- EntityDataSourceContainerNameItem.cs
- DefaultBinder.cs
- BasicHttpMessageSecurity.cs
- HtmlInputFile.cs
- ParsedAttributeCollection.cs
- ToolStripItemClickedEventArgs.cs
- HierarchicalDataBoundControlAdapter.cs
- EdmScalarPropertyAttribute.cs
- ChangePassword.cs
- EmptyEnumerator.cs
- PermissionListSet.cs
- CodeSnippetTypeMember.cs
- ListItem.cs
- MultipleViewProviderWrapper.cs
- CacheEntry.cs
- SmtpLoginAuthenticationModule.cs
- SendContent.cs
- DesignerTransaction.cs
- ListViewPagedDataSource.cs