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 / XsltOld / TextEvent.cs / 1 / 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
- SvcMapFile.cs
- BaseDataList.cs
- _HeaderInfoTable.cs
- CollectionBuilder.cs
- AdornerHitTestResult.cs
- SmiContextFactory.cs
- WindowAutomationPeer.cs
- DataViewListener.cs
- CompiledQueryCacheKey.cs
- MobileControlsSectionHandler.cs
- PerformanceCounterPermissionEntryCollection.cs
- WebContext.cs
- HebrewCalendar.cs
- DataMemberConverter.cs
- RowParagraph.cs
- WindowsFont.cs
- ToolStripDropDown.cs
- TypeTypeConverter.cs
- ComponentResourceManager.cs
- FrugalList.cs
- ReadOnlyObservableCollection.cs
- SmiEventSink_DeferedProcessing.cs
- MessageHeaderException.cs
- SuppressIldasmAttribute.cs
- DbConnectionPoolIdentity.cs
- SystemInformation.cs
- SeparatorAutomationPeer.cs
- X509CertificateClaimSet.cs
- Evaluator.cs
- ColorBlend.cs
- XmlSchemaIdentityConstraint.cs
- ExpressionEditorAttribute.cs
- HierarchicalDataTemplate.cs
- HotSpotCollectionEditor.cs
- ToolBar.cs
- CodeConstructor.cs
- DataProviderNameConverter.cs
- BinaryConverter.cs
- FieldNameLookup.cs
- DEREncoding.cs
- Int32CAMarshaler.cs
- ActivityAction.cs
- FileDialog_Vista.cs
- DataViewListener.cs
- DeflateEmulationStream.cs
- CommandDevice.cs
- ETagAttribute.cs
- DrawingBrush.cs
- DecimalSumAggregationOperator.cs
- JsonCollectionDataContract.cs
- LogicalExpr.cs
- MenuItem.cs
- CompiledAction.cs
- ImageFormatConverter.cs
- InputScope.cs
- ThrowHelper.cs
- RegexGroupCollection.cs
- DoubleCollectionValueSerializer.cs
- SqlDataSourceWizardForm.cs
- AccessedThroughPropertyAttribute.cs
- OleDbTransaction.cs
- ContextBase.cs
- InheritedPropertyChangedEventArgs.cs
- DoubleLinkListEnumerator.cs
- ScrollData.cs
- FlowLayout.cs
- LongValidatorAttribute.cs
- DoubleLinkList.cs
- Journaling.cs
- ADConnectionHelper.cs
- ClientFormsAuthenticationMembershipProvider.cs
- ListContractAdapter.cs
- ExpressionLink.cs
- LineSegment.cs
- Evaluator.cs
- PathTooLongException.cs
- XmlWrappingReader.cs
- AsymmetricSignatureFormatter.cs
- ByteRangeDownloader.cs
- ParamArrayAttribute.cs
- FixedNode.cs
- CodeMethodReturnStatement.cs
- SqlDataReader.cs
- Identifier.cs
- ConnectionManagementElementCollection.cs
- DateTimeConstantAttribute.cs
- HitTestWithGeometryDrawingContextWalker.cs
- InvalidDataException.cs
- TimeSpan.cs
- Quad.cs
- CompressStream.cs
- PropertyNames.cs
- MappingItemCollection.cs
- PathGeometry.cs
- CqlWriter.cs
- FontWeightConverter.cs
- DataGridViewCellPaintingEventArgs.cs
- DiscreteKeyFrames.cs
- BufferBuilder.cs
- UserControl.cs