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
- ClrProviderManifest.cs
- Timer.cs
- ExpressionVisitor.cs
- XPathQilFactory.cs
- XmlSchemaSequence.cs
- DefinitionUpdate.cs
- SafeEventLogReadHandle.cs
- IDQuery.cs
- DataListItem.cs
- Underline.cs
- PseudoWebRequest.cs
- ListComponentEditor.cs
- BrushMappingModeValidation.cs
- ScrollViewer.cs
- DropDownButton.cs
- PolygonHotSpot.cs
- EditorPart.cs
- SimpleBitVector32.cs
- CurrentTimeZone.cs
- XmlMemberMapping.cs
- BooleanProjectedSlot.cs
- PriorityItem.cs
- RawMouseInputReport.cs
- RawStylusActions.cs
- EdmConstants.cs
- QuinticEase.cs
- Activity.cs
- GiveFeedbackEvent.cs
- CompensationParticipant.cs
- TemplateKey.cs
- BamlTreeMap.cs
- Trace.cs
- XmlHierarchicalDataSourceView.cs
- KnownTypesProvider.cs
- BasicCellRelation.cs
- HtmlLink.cs
- TimeoutHelper.cs
- ConfigurationStrings.cs
- XmlText.cs
- ReaderWriterLock.cs
- ColumnMapProcessor.cs
- XmlSchemaSimpleType.cs
- UITypeEditor.cs
- webeventbuffer.cs
- NullableDoubleMinMaxAggregationOperator.cs
- RectConverter.cs
- ConsumerConnectionPoint.cs
- ExpandableObjectConverter.cs
- WindowsContainer.cs
- ServiceModelPerformanceCounters.cs
- EntityProviderServices.cs
- DesignerTransactionCloseEvent.cs
- HttpCookieCollection.cs
- WebPartConnectionsCancelVerb.cs
- FileDialog_Vista_Interop.cs
- ProtocolsSection.cs
- SwitchAttribute.cs
- _BufferOffsetSize.cs
- XmlAtomErrorReader.cs
- MenuTracker.cs
- SapiAttributeParser.cs
- EntityDataSourceSelectingEventArgs.cs
- MultiTrigger.cs
- ThemeableAttribute.cs
- CompoundFileDeflateTransform.cs
- SerialStream.cs
- RenderTargetBitmap.cs
- glyphs.cs
- ValuePattern.cs
- ExpressionConverter.cs
- InteropEnvironment.cs
- Point.cs
- ServiceConfigurationTraceRecord.cs
- ApplicationFileParser.cs
- XmlDigitalSignatureProcessor.cs
- ChangeBlockUndoRecord.cs
- ListDictionary.cs
- StringArrayConverter.cs
- CodeCompileUnit.cs
- ResourceExpressionBuilder.cs
- PageAsyncTask.cs
- ExpressionPrinter.cs
- ResourceReader.cs
- ContentTextAutomationPeer.cs
- FormViewInsertedEventArgs.cs
- DrawingContextWalker.cs
- ProxySimple.cs
- WebPartPersonalization.cs
- DefaultValueTypeConverter.cs
- Tuple.cs
- ApplicationProxyInternal.cs
- InstanceNameConverter.cs
- TextBlock.cs
- SinglePageViewer.cs
- SQLInt64Storage.cs
- UrlPath.cs
- ConsoleKeyInfo.cs
- AspProxy.cs
- SystemParameters.cs
- _ListenerAsyncResult.cs