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
- VersionedStreamOwner.cs
- ConfigurationPropertyAttribute.cs
- TripleDES.cs
- CopyAction.cs
- AsnEncodedData.cs
- EdmFunctionAttribute.cs
- SecurityUtils.cs
- WebHttpDispatchOperationSelector.cs
- CallSiteOps.cs
- RegexCapture.cs
- NamespaceInfo.cs
- DataGridViewTextBoxCell.cs
- RotateTransform3D.cs
- FillErrorEventArgs.cs
- SqlServices.cs
- TypeToken.cs
- MarkedHighlightComponent.cs
- SemanticAnalyzer.cs
- SerTrace.cs
- BitmapDownload.cs
- TemplateApplicationHelper.cs
- FreeFormDragDropManager.cs
- Formatter.cs
- UnsafeNativeMethods.cs
- ObjectRef.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ObjectComplexPropertyMapping.cs
- TaiwanLunisolarCalendar.cs
- BaseParaClient.cs
- AnnotationMap.cs
- PreDigestedSignedInfo.cs
- OracleRowUpdatingEventArgs.cs
- ColorAnimationUsingKeyFrames.cs
- SelectionService.cs
- SqlDelegatedTransaction.cs
- ThemeDictionaryExtension.cs
- SerializerWriterEventHandlers.cs
- RuntimeUtils.cs
- securitymgrsite.cs
- InternalPolicyElement.cs
- SQLMoney.cs
- EncryptedKey.cs
- TextTrailingWordEllipsis.cs
- ConnectionStringEditor.cs
- Dump.cs
- DeferredTextReference.cs
- HostedTransportConfigurationManager.cs
- EntityContainerAssociationSetEnd.cs
- FormParameter.cs
- FormViewInsertEventArgs.cs
- StreamMarshaler.cs
- CodeIdentifiers.cs
- CacheDict.cs
- CodeDomConfigurationHandler.cs
- InstanceOwnerException.cs
- CompensatableTransactionScopeActivity.cs
- SystemDropShadowChrome.cs
- SettingsContext.cs
- CursorInteropHelper.cs
- ReversePositionQuery.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- ProtocolElementCollection.cs
- ImageSource.cs
- LocalizationParserHooks.cs
- ReaderContextStackData.cs
- LineServicesRun.cs
- SqlDependencyUtils.cs
- SortedDictionary.cs
- SoapSchemaExporter.cs
- ContentElement.cs
- OperationAbortedException.cs
- TextBox.cs
- DocumentReference.cs
- PersianCalendar.cs
- _NegoStream.cs
- Span.cs
- IsolatedStorageFilePermission.cs
- ResourceProviderFactory.cs
- ClientFormsAuthenticationCredentials.cs
- PasswordRecovery.cs
- StatusStrip.cs
- EmissiveMaterial.cs
- prefixendpointaddressmessagefiltertable.cs
- Floater.cs
- DataComponentNameHandler.cs
- TextContainerHelper.cs
- CodeIterationStatement.cs
- DataTableCollection.cs
- FixedTextView.cs
- CanonicalizationDriver.cs
- WebPartActionVerb.cs
- PolicyManager.cs
- PackageRelationshipSelector.cs
- BCLDebug.cs
- DefaultAsyncDataDispatcher.cs
- InputMethod.cs
- DynamicPropertyReader.cs
- Registry.cs
- Models.cs
- CancellationHandler.cs