Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.Activities / System / Activities / Expressions / LocationReferenceValue.cs / 1305376 / LocationReferenceValue.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.Activities.Expressions { using System.Linq.Expressions; using System.Runtime; [Fx.Tag.XamlVisible(false)] sealed class LocationReferenceValue: CodeActivity , IExpressionContainer { LocationReference locationReference; public LocationReferenceValue(LocationReference locationReference) { this.locationReference = locationReference; } public LocationReference LocationReference { get { return this.locationReference; } } Expression IExpressionContainer.Expression { get { return ExpressionUtilities.CreateIdentifierExpression(this.locationReference); } } protected override void CacheMetadata(CodeActivityMetadata metadata) { // No-op } internal override bool TryGetValue(ActivityContext context, out T value) { try { context.AllowChainedEnvironmentAccess = true; value = context.GetValue (this.locationReference); } finally { context.AllowChainedEnvironmentAccess = false; } return true; } protected override T Execute(CodeActivityContext context) { return ExecuteWithTryGetValue(context); } } } // 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
- KnownTypeAttribute.cs
- ContractAdapter.cs
- PropagatorResult.cs
- AccessDataSource.cs
- PolicyImporterElementCollection.cs
- CompilerState.cs
- AutoResizedEvent.cs
- MetadataPropertyCollection.cs
- UrlUtility.cs
- MachineSettingsSection.cs
- ConfigPathUtility.cs
- Model3D.cs
- EventKeyword.cs
- XmlSchemaParticle.cs
- COM2ExtendedUITypeEditor.cs
- AdCreatedEventArgs.cs
- WeakRefEnumerator.cs
- EntityDataSourceState.cs
- StylusLogic.cs
- CssClassPropertyAttribute.cs
- QueryResponse.cs
- X509ServiceCertificateAuthenticationElement.cs
- AuthenticatedStream.cs
- ThreadExceptionDialog.cs
- VisualTreeHelper.cs
- DiscardableAttribute.cs
- WindowsImpersonationContext.cs
- TypeResolver.cs
- SafeRightsManagementQueryHandle.cs
- TypeBinaryExpression.cs
- COMException.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- Material.cs
- BitmapVisualManager.cs
- TraceListener.cs
- SecurityContext.cs
- GridProviderWrapper.cs
- DataGridViewBand.cs
- DefaultIfEmptyQueryOperator.cs
- BamlReader.cs
- InstallerTypeAttribute.cs
- ServiceOperation.cs
- DataObjectPastingEventArgs.cs
- LinearGradientBrush.cs
- BaseCollection.cs
- EdmRelationshipRoleAttribute.cs
- ConfigurationException.cs
- EnlistmentState.cs
- ValidateNames.cs
- MenuItemAutomationPeer.cs
- HtmlInputPassword.cs
- DataConnectionHelper.cs
- IListConverters.cs
- AsyncOperationContext.cs
- DeploymentSection.cs
- HttpCookieCollection.cs
- SimpleExpression.cs
- XmlBoundElement.cs
- ListViewInsertionMark.cs
- DataSourceGroupCollection.cs
- EditorAttribute.cs
- CallSiteBinder.cs
- AppDomainUnloadedException.cs
- CoreSwitches.cs
- ResourceReferenceExpression.cs
- EventLogPermissionEntryCollection.cs
- BaseCollection.cs
- ElasticEase.cs
- TemplateControlBuildProvider.cs
- PerformanceCounterPermissionAttribute.cs
- RepeaterItemCollection.cs
- ArcSegment.cs
- SR.cs
- Bezier.cs
- wgx_exports.cs
- WebPartCatalogAddVerb.cs
- BamlRecords.cs
- WindowsGraphicsCacheManager.cs
- AsmxEndpointPickerExtension.cs
- Input.cs
- FunctionUpdateCommand.cs
- StorageEntityTypeMapping.cs
- UnsafeNativeMethods.cs
- _NestedSingleAsyncResult.cs
- ViewStateModeByIdAttribute.cs
- CodeDirectoryCompiler.cs
- DesignSurfaceManager.cs
- HTTPNotFoundHandler.cs
- ComplexObject.cs
- HierarchicalDataSourceIDConverter.cs
- SqlBulkCopyColumnMapping.cs
- LinqDataSourceView.cs
- AutomationPatternInfo.cs
- Activity.cs
- EventLogEntry.cs
- SiteIdentityPermission.cs
- DynamicRenderer.cs
- MutexSecurity.cs
- TrackingProfile.cs
- FieldCollectionEditor.cs