Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / XmlUtils / System / Xml / Xsl / QIL / QilLiteral.cs / 1305376 / QilLiteral.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //[....] //----------------------------------------------------------------------------- using System; using System.Diagnostics; namespace System.Xml.Xsl.Qil { ////// View over a Qil atomic value literal (of any type). /// ////// Don't construct QIL nodes directly; instead, use the internal class QilLiteral : QilNode { private object value; //----------------------------------------------- // Constructor //----------------------------------------------- ///QilFactory . ////// Construct a new node /// public QilLiteral(QilNodeType nodeType, object value) : base(nodeType) { Value = value; } //----------------------------------------------- // QilLiteral methods //----------------------------------------------- public object Value { get { return this.value; } set { this.value = value; } } public static implicit operator string(QilLiteral literal) { return (string) literal.value; } public static implicit operator int(QilLiteral literal) { return (int) literal.value; } public static implicit operator long(QilLiteral literal) { return (long) literal.value; } public static implicit operator double(QilLiteral literal) { return (double) literal.value; } public static implicit operator decimal(QilLiteral literal) { return (decimal) literal.value; } public static implicit operator XmlQueryType(QilLiteral literal) { return (XmlQueryType) literal.value; } } } // 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
- CryptoApi.cs
- GCHandleCookieTable.cs
- FormattedTextSymbols.cs
- TriggerActionCollection.cs
- ParsedAttributeCollection.cs
- ServiceHostingEnvironment.cs
- QueryConverter.cs
- IPCCacheManager.cs
- AppDomainAttributes.cs
- LinkArea.cs
- DBConnectionString.cs
- RootProfilePropertySettingsCollection.cs
- GeneralTransform3D.cs
- InstalledFontCollection.cs
- TcpTransportSecurityElement.cs
- WorkflowOperationErrorHandler.cs
- HttpConfigurationContext.cs
- SequenceDesigner.cs
- FederatedMessageSecurityOverHttp.cs
- StylusDownEventArgs.cs
- WindowsGraphicsCacheManager.cs
- IsolatedStorageFile.cs
- FormViewUpdateEventArgs.cs
- AsyncPostBackErrorEventArgs.cs
- Base64Encoder.cs
- TextTreeInsertElementUndoUnit.cs
- XmlWhitespace.cs
- StrokeIntersection.cs
- CryptoApi.cs
- ClientBuildManagerCallback.cs
- TraceContext.cs
- ViewKeyConstraint.cs
- ProxyElement.cs
- Overlapped.cs
- XmlSiteMapProvider.cs
- ApplicationSecurityInfo.cs
- DataGridViewComboBoxEditingControl.cs
- ToolStripMenuItem.cs
- Shared.cs
- DesignerTextViewAdapter.cs
- Visual3D.cs
- SafeUserTokenHandle.cs
- BitmapEffectInput.cs
- SweepDirectionValidation.cs
- RecognizedWordUnit.cs
- AsyncWaitHandle.cs
- RelOps.cs
- SelectionProcessor.cs
- UrlMapping.cs
- ConfigurationValues.cs
- DataDocumentXPathNavigator.cs
- MulticastOption.cs
- AppSettingsSection.cs
- EdmPropertyAttribute.cs
- WinFormsSecurity.cs
- CryptoProvider.cs
- Monitor.cs
- ErrorFormatter.cs
- CacheVirtualItemsEvent.cs
- ColorTranslator.cs
- TextSearch.cs
- MembershipPasswordException.cs
- DownloadProgressEventArgs.cs
- HashHelper.cs
- OwnerDrawPropertyBag.cs
- path.cs
- BoundColumn.cs
- TiffBitmapDecoder.cs
- MetafileHeaderWmf.cs
- OleDbCommandBuilder.cs
- QilStrConcat.cs
- LambdaCompiler.Expressions.cs
- _ListenerResponseStream.cs
- StoreContentChangedEventArgs.cs
- BackStopAuthenticationModule.cs
- WebPartDescription.cs
- CompModSwitches.cs
- XmlSchemaSequence.cs
- Evidence.cs
- BooleanProjectedSlot.cs
- WebResourceUtil.cs
- TextRangeEdit.cs
- TableCellsCollectionEditor.cs
- ForwardPositionQuery.cs
- uribuilder.cs
- StringWriter.cs
- MappingSource.cs
- DesignTimeTemplateParser.cs
- COM2ComponentEditor.cs
- IndexedGlyphRun.cs
- FrameworkContentElement.cs
- CustomLineCap.cs
- ToolStripArrowRenderEventArgs.cs
- NamedPipeTransportBindingElement.cs
- RowSpanVector.cs
- FixedSOMPageConstructor.cs
- DesignerDataRelationship.cs
- PerformanceCounter.cs
- DataTableClearEvent.cs
- ReflectEventDescriptor.cs