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
- BitmapEffectInput.cs
- NullableIntAverageAggregationOperator.cs
- CapabilitiesSection.cs
- Site.cs
- TableParagraph.cs
- wgx_exports.cs
- CssTextWriter.cs
- MonitorWrapper.cs
- ProxyWebPartConnectionCollection.cs
- XmlSchemaValidator.cs
- MarkupWriter.cs
- TrackingProfile.cs
- HttpListenerRequest.cs
- ObjectTypeMapping.cs
- CaseStatement.cs
- ServiceBusyException.cs
- InArgumentConverter.cs
- ObjectItemCollection.cs
- SecuritySessionFilter.cs
- DataRecordInternal.cs
- TagPrefixAttribute.cs
- MenuItemCollectionEditor.cs
- SQLRoleProvider.cs
- RepeaterItemEventArgs.cs
- SafeSecurityHelper.cs
- SemaphoreSecurity.cs
- PropertyMetadata.cs
- OledbConnectionStringbuilder.cs
- CodeCastExpression.cs
- PropertyRecord.cs
- TreePrinter.cs
- AbstractSvcMapFileLoader.cs
- SafeFindHandle.cs
- Funcletizer.cs
- TransformGroup.cs
- TableLayoutSettings.cs
- LogEntry.cs
- RTLAwareMessageBox.cs
- PageFunction.cs
- RequestCacheManager.cs
- IntSecurity.cs
- ValidationEventArgs.cs
- AnonymousIdentificationSection.cs
- documentsequencetextcontainer.cs
- HtmlUtf8RawTextWriter.cs
- PtsHost.cs
- ParallelDesigner.cs
- XPathNavigator.cs
- FileStream.cs
- AdRotatorDesigner.cs
- SqlClientWrapperSmiStream.cs
- MimeBasePart.cs
- FontConverter.cs
- ObjectItemAssemblyLoader.cs
- IdentitySection.cs
- PriorityBinding.cs
- DockPatternIdentifiers.cs
- SwitchAttribute.cs
- BaseInfoTable.cs
- AutoScrollHelper.cs
- Volatile.cs
- ImageField.cs
- CompiledELinqQueryState.cs
- CodeDomConfigurationHandler.cs
- ExpressionCopier.cs
- panel.cs
- WindowInteropHelper.cs
- Debugger.cs
- EtwTrace.cs
- TimelineGroup.cs
- RadioButton.cs
- EventArgs.cs
- CharEntityEncoderFallback.cs
- TheQuery.cs
- WebDescriptionAttribute.cs
- ReferentialConstraint.cs
- BufferedReadStream.cs
- SqlDataReaderSmi.cs
- TypeConverter.cs
- RuntimeIdentifierPropertyAttribute.cs
- VirtualizingStackPanel.cs
- ClaimTypeRequirement.cs
- TextDecorationCollection.cs
- ResponseStream.cs
- RoleGroupCollection.cs
- RowCache.cs
- FixedSOMPage.cs
- ReflectionHelper.cs
- ManagedFilter.cs
- ToolConsole.cs
- SpecialTypeDataContract.cs
- ProviderConnectionPoint.cs
- FSWPathEditor.cs
- AvTraceFormat.cs
- ConfigurationPropertyCollection.cs
- BitmapCacheBrush.cs
- NamespaceListProperty.cs
- MonthCalendar.cs
- DefaultMemberAttribute.cs
- TabPanel.cs