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 / QilLiteral.cs / 1 / 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. //------------------------------------------------------------------------------ //// 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
- ByteConverter.cs
- Root.cs
- Permission.cs
- ImageInfo.cs
- NonVisualControlAttribute.cs
- TypeDelegator.cs
- MonthChangedEventArgs.cs
- EmptyQuery.cs
- ConditionChanges.cs
- basemetadatamappingvisitor.cs
- ScaleTransform.cs
- LogSwitch.cs
- bindurihelper.cs
- COM2ExtendedBrowsingHandler.cs
- OdbcParameter.cs
- EditCommandColumn.cs
- HtmlInputFile.cs
- XmlTextReaderImplHelpers.cs
- PolyBezierSegment.cs
- BoundColumn.cs
- ManifestResourceInfo.cs
- DesignerActionMethodItem.cs
- CharacterMetricsDictionary.cs
- Figure.cs
- ComponentResourceManager.cs
- LockCookie.cs
- ReverseInheritProperty.cs
- ToolStripProgressBar.cs
- LinqDataSource.cs
- LineMetrics.cs
- IndentTextWriter.cs
- SQLBytesStorage.cs
- PasswordPropertyTextAttribute.cs
- ConnectionStringsExpressionBuilder.cs
- arclist.cs
- CopyOfAction.cs
- AuthenticationModuleElementCollection.cs
- TimeIntervalCollection.cs
- TouchFrameEventArgs.cs
- SqlUtil.cs
- PathSegmentCollection.cs
- SafeNativeMethods.cs
- ellipse.cs
- UnmanagedMemoryStream.cs
- RouteItem.cs
- ItemsPresenter.cs
- EntityKeyElement.cs
- BindingGraph.cs
- SamlAuthenticationStatement.cs
- RuntimeArgumentHandle.cs
- BinaryMethodMessage.cs
- DefinitionBase.cs
- EventsTab.cs
- ResourceDisplayNameAttribute.cs
- OpenTypeLayout.cs
- BitmapFrameDecode.cs
- SoapAttributeAttribute.cs
- precedingsibling.cs
- LineVisual.cs
- WindowsSolidBrush.cs
- Size3DValueSerializer.cs
- CompilerGlobalScopeAttribute.cs
- PointAnimationClockResource.cs
- SqlCacheDependencySection.cs
- HttpDebugHandler.cs
- GridViewDeletedEventArgs.cs
- ValueQuery.cs
- StrongName.cs
- TextRangeEdit.cs
- ParallelTimeline.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- RbTree.cs
- PlaceHolder.cs
- StringCollection.cs
- VideoDrawing.cs
- UnsettableComboBox.cs
- PrePostDescendentsWalker.cs
- DBDataPermissionAttribute.cs
- XmlDataContract.cs
- XmlSchemaCompilationSettings.cs
- RelatedCurrencyManager.cs
- WeakReferenceEnumerator.cs
- HtmlShim.cs
- WebControlAdapter.cs
- FlowLayoutSettings.cs
- bidPrivateBase.cs
- AutomationPeer.cs
- WebPartDisplayModeCollection.cs
- MetadataItemSerializer.cs
- BigInt.cs
- XmlCharCheckingReader.cs
- ToolStripHighContrastRenderer.cs
- Size3D.cs
- GenericPrincipal.cs
- ActivityExecutionContextCollection.cs
- SignatureDescription.cs
- Oid.cs
- TPLETWProvider.cs
- Bidi.cs
- ServiceCredentialsSecurityTokenManager.cs