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
- PropertyMap.cs
- Animatable.cs
- SpinLock.cs
- EventLog.cs
- VariableAction.cs
- SaveFileDialog.cs
- BrowserCapabilitiesFactory.cs
- CompositeActivityCodeGenerator.cs
- SocketCache.cs
- _HelperAsyncResults.cs
- TripleDESCryptoServiceProvider.cs
- ParentUndoUnit.cs
- WebDescriptionAttribute.cs
- UrlMappingsSection.cs
- DocumentAutomationPeer.cs
- IncrementalReadDecoders.cs
- DataGridViewAutoSizeModeEventArgs.cs
- WebPartChrome.cs
- BitmapScalingModeValidation.cs
- ServiceInfo.cs
- StringSorter.cs
- SqlInternalConnection.cs
- AvTraceDetails.cs
- Vector3DConverter.cs
- CachedFontFamily.cs
- SqlBooleanMismatchVisitor.cs
- CustomPopupPlacement.cs
- ClrPerspective.cs
- EntityDataSourceContainerNameItem.cs
- ScrollPattern.cs
- HttpModuleCollection.cs
- Error.cs
- HGlobalSafeHandle.cs
- WebServiceData.cs
- SQLResource.cs
- FileChangeNotifier.cs
- PackageController.cs
- RawAppCommandInputReport.cs
- PageHandlerFactory.cs
- Avt.cs
- DataSourceBooleanViewSchemaConverter.cs
- RoleGroup.cs
- SqlVisitor.cs
- SectionRecord.cs
- RemoteWebConfigurationHostStream.cs
- _Connection.cs
- CompModSwitches.cs
- ICollection.cs
- EnvironmentPermission.cs
- Propagator.Evaluator.cs
- ContentPresenter.cs
- XhtmlConformanceSection.cs
- WindowsFormsSectionHandler.cs
- StrongNamePublicKeyBlob.cs
- CompositeFontParser.cs
- WsatServiceCertificate.cs
- DefinitionBase.cs
- IpcPort.cs
- VerificationException.cs
- TreeViewEvent.cs
- XsltSettings.cs
- ServicesUtilities.cs
- StrongName.cs
- ControlAdapter.cs
- DataGridViewIntLinkedList.cs
- MimePart.cs
- WebPartMinimizeVerb.cs
- WindowsGraphicsWrapper.cs
- ActivityScheduledQuery.cs
- Int16AnimationUsingKeyFrames.cs
- ExpressionReplacer.cs
- InputMethodStateChangeEventArgs.cs
- COM2PropertyPageUITypeConverter.cs
- CreatingCookieEventArgs.cs
- RuleSetDialog.cs
- NativeObjectSecurity.cs
- PromptBuilder.cs
- TextServicesManager.cs
- ProcessInputEventArgs.cs
- PrefixHandle.cs
- Rules.cs
- Operator.cs
- NativeMethods.cs
- ServiceInfoCollection.cs
- LocalClientSecuritySettings.cs
- FamilyTypefaceCollection.cs
- ToolStripGrip.cs
- ColorTransformHelper.cs
- TimerEventSubscriptionCollection.cs
- TextTreeUndoUnit.cs
- TreeSet.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- OciLobLocator.cs
- PenContexts.cs
- DataGridViewCellStyleConverter.cs
- UseAttributeSetsAction.cs
- PropertyDescriptor.cs
- OdbcConnectionStringbuilder.cs
- PropertySourceInfo.cs
- ResourceReader.cs