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
- SecurityTokenTypes.cs
- RequestQueryProcessor.cs
- SerializationObjectManager.cs
- _ServiceNameStore.cs
- MergeFailedEvent.cs
- XmlProcessingInstruction.cs
- XMLUtil.cs
- X509Extension.cs
- XmlSchemaInferenceException.cs
- BooleanAnimationUsingKeyFrames.cs
- SqlDataSourceFilteringEventArgs.cs
- ForEachDesigner.xaml.cs
- LocalizedNameDescriptionPair.cs
- XDRSchema.cs
- XmlBoundElement.cs
- TextContainerHelper.cs
- SynchronizedRandom.cs
- LinqDataSourceHelper.cs
- SqlFactory.cs
- OpenTypeCommon.cs
- IconConverter.cs
- XmlMemberMapping.cs
- EventHandlers.cs
- CodeTryCatchFinallyStatement.cs
- HtmlInputPassword.cs
- PropertyFilterAttribute.cs
- TextComposition.cs
- DES.cs
- XslNumber.cs
- MgmtConfigurationRecord.cs
- SQLSingle.cs
- HttpProfileGroupBase.cs
- DetailsViewRow.cs
- SafeHandle.cs
- CodeTypeDeclaration.cs
- NumberFormatter.cs
- Adorner.cs
- ImageIndexConverter.cs
- X509ChainPolicy.cs
- Geometry3D.cs
- InputLanguageManager.cs
- CodeFieldReferenceExpression.cs
- QfeChecker.cs
- Hashtable.cs
- BoundField.cs
- XmlHelper.cs
- HideDisabledControlAdapter.cs
- MetadataArtifactLoader.cs
- basenumberconverter.cs
- RenderingEventArgs.cs
- SymbolType.cs
- PropertyDescriptorComparer.cs
- CaseInsensitiveHashCodeProvider.cs
- Transform.cs
- DataGridViewAutoSizeModeEventArgs.cs
- SqlStatistics.cs
- SqlDeflator.cs
- IPipelineRuntime.cs
- HttpCachePolicyWrapper.cs
- WaitHandle.cs
- RecommendedAsConfigurableAttribute.cs
- SerialReceived.cs
- BoolExpressionVisitors.cs
- Adorner.cs
- DataGridViewRowPrePaintEventArgs.cs
- DataGridViewCheckBoxColumn.cs
- TemplateBindingExpression.cs
- IProvider.cs
- WorkflowOperationErrorHandler.cs
- TemplateField.cs
- UnicodeEncoding.cs
- SafeArrayRankMismatchException.cs
- ContextMenu.cs
- DetailsViewPagerRow.cs
- UnsafeCollabNativeMethods.cs
- indexingfiltermarshaler.cs
- RotateTransform.cs
- ResourceDisplayNameAttribute.cs
- DbConnectionOptions.cs
- StagingAreaInputItem.cs
- IHttpResponseInternal.cs
- OutputCacheSettingsSection.cs
- ParsedAttributeCollection.cs
- PrinterResolution.cs
- MsmqTransportElement.cs
- ObjectStateFormatter.cs
- MailWriter.cs
- Geometry3D.cs
- HttpServerVarsCollection.cs
- ComponentResourceKeyConverter.cs
- CodeGroup.cs
- DataServiceQueryException.cs
- FormsAuthenticationUser.cs
- CustomActivityDesigner.cs
- ConfigPathUtility.cs
- BindValidator.cs
- FileFormatException.cs
- BrowserInteropHelper.cs
- PatternMatcher.cs
- StreamWriter.cs