Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / XsltOld / TextEvent.cs / 1305376 / TextEvent.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Xsl.XsltOld { using Res = System.Xml.Utils.Res; using System; using System.Diagnostics; using System.Xml; using System.Xml.XPath; internal class TextEvent : Event { private string text; protected TextEvent() {} public TextEvent(string text) { Debug.Assert(text != null); this.text = text; } public TextEvent(Compiler compiler) { NavigatorInput input = compiler.Input; Debug.Assert(input.NodeType == XPathNodeType.Text || input.NodeType == XPathNodeType.SignificantWhitespace); this.text = input.Value; } public override bool Output(Processor processor, ActionFrame frame) { return processor.TextEvent(this.text); } public virtual string Evaluate(Processor processor, ActionFrame frame) { return this.text; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- namespace System.Xml.Xsl.XsltOld { using Res = System.Xml.Utils.Res; using System; using System.Diagnostics; using System.Xml; using System.Xml.XPath; internal class TextEvent : Event { private string text; protected TextEvent() {} public TextEvent(string text) { Debug.Assert(text != null); this.text = text; } public TextEvent(Compiler compiler) { NavigatorInput input = compiler.Input; Debug.Assert(input.NodeType == XPathNodeType.Text || input.NodeType == XPathNodeType.SignificantWhitespace); this.text = input.Value; } public override bool Output(Processor processor, ActionFrame frame) { return processor.TextEvent(this.text); } public virtual string Evaluate(Processor processor, ActionFrame frame) { return this.text; } } } // 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
- Win32PrintDialog.cs
- SpeechSeg.cs
- HttpListenerContext.cs
- OperationDescription.cs
- TimeStampChecker.cs
- AssemblyResourceLoader.cs
- TraceContextEventArgs.cs
- HelpPage.cs
- MetadataArtifactLoaderCompositeResource.cs
- XmlNavigatorFilter.cs
- ApplicationId.cs
- CheckBox.cs
- TransformerTypeCollection.cs
- EncodingConverter.cs
- DataListItemCollection.cs
- SparseMemoryStream.cs
- DesignerFrame.cs
- XsltInput.cs
- TypedTableGenerator.cs
- PreviewKeyDownEventArgs.cs
- TimerEventSubscription.cs
- DictionaryGlobals.cs
- Mutex.cs
- PathGradientBrush.cs
- UIElementAutomationPeer.cs
- BinaryObjectWriter.cs
- SecurityNegotiationException.cs
- TableItemPattern.cs
- ExtensionSimplifierMarkupObject.cs
- XmlWriterDelegator.cs
- ProgressBar.cs
- X509Extension.cs
- ReflectionUtil.cs
- NativeMethods.cs
- TableHeaderCell.cs
- UnorderedHashRepartitionStream.cs
- oledbmetadatacolumnnames.cs
- InternalsVisibleToAttribute.cs
- TransformCollection.cs
- ContextMenuStrip.cs
- WebServiceMethodData.cs
- AlphabeticalEnumConverter.cs
- XmlSchemaImport.cs
- SchemaTypeEmitter.cs
- SqlGatherConsumedAliases.cs
- LayoutTable.cs
- HttpListenerPrefixCollection.cs
- HashHelper.cs
- HostedHttpRequestAsyncResult.cs
- UrlAuthFailedErrorFormatter.cs
- HandlerWithFactory.cs
- WebException.cs
- RecordBuilder.cs
- MatcherBuilder.cs
- AsyncStreamReader.cs
- GradientStopCollection.cs
- XsltArgumentList.cs
- SafeArchiveContext.cs
- Viewport3DAutomationPeer.cs
- XmlSchemaSimpleTypeRestriction.cs
- ConfigPathUtility.cs
- DataSourceCacheDurationConverter.cs
- TableItemProviderWrapper.cs
- Trace.cs
- Int16.cs
- OracleParameterBinding.cs
- HttpListenerResponse.cs
- AnnotationObservableCollection.cs
- ProfileGroupSettings.cs
- XmlConvert.cs
- ThreadExceptionEvent.cs
- LogExtent.cs
- CodeExpressionCollection.cs
- RequestTimeoutManager.cs
- HandleCollector.cs
- validationstate.cs
- XmlWriterTraceListener.cs
- SEHException.cs
- _TransmitFileOverlappedAsyncResult.cs
- VectorAnimationUsingKeyFrames.cs
- TypeConverterHelper.cs
- OutputCacheProfile.cs
- NamespaceEmitter.cs
- HttpCapabilitiesBase.cs
- Literal.cs
- Comparer.cs
- LineSegment.cs
- TransportSecurityProtocolFactory.cs
- ViewBase.cs
- EntityDataSourceWrapper.cs
- Column.cs
- ApplicationManager.cs
- RoutedEventConverter.cs
- RoutedPropertyChangedEventArgs.cs
- MailMessageEventArgs.cs
- TextTreeUndo.cs
- ResourcesBuildProvider.cs
- CompatibleIComparer.cs
- ByteConverter.cs
- ConnectionStringsExpressionBuilder.cs