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 / 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
- TextParagraph.cs
- CultureMapper.cs
- ContourSegment.cs
- FontTypeConverter.cs
- PersonalizablePropertyEntry.cs
- ResourcesBuildProvider.cs
- JsonQNameDataContract.cs
- Peer.cs
- NetworkAddressChange.cs
- WriteFileContext.cs
- Int32CollectionValueSerializer.cs
- CodeMethodReturnStatement.cs
- XmlElementAttribute.cs
- securitycriticaldata.cs
- HttpTransportSecurity.cs
- DataGridCommandEventArgs.cs
- DesignerCategoryAttribute.cs
- EllipseGeometry.cs
- DependencyPropertyKey.cs
- CommonXSendMessage.cs
- FormViewUpdatedEventArgs.cs
- Attachment.cs
- EventRoute.cs
- PackageFilter.cs
- DataGridViewControlCollection.cs
- FragmentQueryKB.cs
- Helpers.cs
- ColorAnimation.cs
- TableRowCollection.cs
- ScrollChangedEventArgs.cs
- ToolStrip.cs
- COM2ExtendedBrowsingHandler.cs
- NavigationFailedEventArgs.cs
- TreeViewCancelEvent.cs
- SafeCryptoHandles.cs
- DefaultWorkflowSchedulerService.cs
- TrackingServices.cs
- BufferBuilder.cs
- LicenseContext.cs
- FontCollection.cs
- WindowsFormsSynchronizationContext.cs
- KoreanCalendar.cs
- DesignerOptions.cs
- AppDomain.cs
- WindowsStartMenu.cs
- DynamicILGenerator.cs
- FilteredReadOnlyMetadataCollection.cs
- AvTrace.cs
- DeobfuscatingStream.cs
- ByteConverter.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- ApplicationGesture.cs
- ComboBox.cs
- ExtendedPropertyDescriptor.cs
- RegularExpressionValidator.cs
- LinkClickEvent.cs
- ExpandedWrapper.cs
- ClientScriptItemCollection.cs
- Bitmap.cs
- PartBasedPackageProperties.cs
- ClockController.cs
- PackagePart.cs
- NextPreviousPagerField.cs
- PropertyHelper.cs
- SecurityElement.cs
- FunctionImportElement.cs
- ScriptingWebServicesSectionGroup.cs
- ImageCodecInfo.cs
- XmlQueryOutput.cs
- BufferedReadStream.cs
- EventLogPermissionEntryCollection.cs
- ErasingStroke.cs
- OrderedDictionary.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- DeadCharTextComposition.cs
- CultureInfo.cs
- ObjectHandle.cs
- ColumnHeaderConverter.cs
- DataGridViewComboBoxCell.cs
- ApplicationInfo.cs
- BufferBuilder.cs
- Pkcs7Signer.cs
- DecryptRequest.cs
- ServiceHostingEnvironment.cs
- QuestionEventArgs.cs
- SqlCachedBuffer.cs
- DesignerHelpers.cs
- DataGridViewCellStyleChangedEventArgs.cs
- Identity.cs
- UntypedNullExpression.cs
- SerialStream.cs
- XmlArrayAttribute.cs
- XhtmlBasicTextViewAdapter.cs
- _NetRes.cs
- DataBindingCollectionEditor.cs
- DoubleAverageAggregationOperator.cs
- AddDataControlFieldDialog.cs
- AnnotationService.cs
- PointCollection.cs
- Rect3D.cs