Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / System.Runtime.DurableInstancing / System / Runtime / DurableInstancing / InstanceValue.cs / 1305376 / InstanceValue.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Runtime.DurableInstancing { using System; using System.Runtime; [Fx.Tag.XamlVisible(false)] public sealed class InstanceValue { readonly static InstanceValue deletedValue = new InstanceValue(); public InstanceValue(object value) : this(value, InstanceValueOptions.None) { } public InstanceValue(object value, InstanceValueOptions options) { Value = value; Options = options; } InstanceValue() { Value = this; } public object Value { get; private set; } public InstanceValueOptions Options { get; private set; } public bool IsDeletedValue { get { return object.ReferenceEquals(this, InstanceValue.DeletedValue); } } public static InstanceValue DeletedValue { get { return InstanceValue.deletedValue; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Runtime.DurableInstancing { using System; using System.Runtime; [Fx.Tag.XamlVisible(false)] public sealed class InstanceValue { readonly static InstanceValue deletedValue = new InstanceValue(); public InstanceValue(object value) : this(value, InstanceValueOptions.None) { } public InstanceValue(object value, InstanceValueOptions options) { Value = value; Options = options; } InstanceValue() { Value = this; } public object Value { get; private set; } public InstanceValueOptions Options { get; private set; } public bool IsDeletedValue { get { return object.ReferenceEquals(this, InstanceValue.DeletedValue); } } public static InstanceValue DeletedValue { get { return InstanceValue.deletedValue; } } } } // 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
- DeobfuscatingStream.cs
- ObjectHandle.cs
- EncryptedPackageFilter.cs
- DetailsViewUpdatedEventArgs.cs
- RMEnrollmentPage3.cs
- ListBindingHelper.cs
- MostlySingletonList.cs
- PackUriHelper.cs
- BinaryObjectInfo.cs
- TrustManager.cs
- ChangeConflicts.cs
- codemethodreferenceexpression.cs
- TileBrush.cs
- Condition.cs
- StaticExtension.cs
- IssuanceTokenProviderState.cs
- OleCmdHelper.cs
- EmptyStringExpandableObjectConverter.cs
- AssemblyResourceLoader.cs
- BindUriHelper.cs
- HeaderCollection.cs
- WorkflowInstance.cs
- RealizationContext.cs
- QueryRewriter.cs
- ExecutorLocksHeldException.cs
- FormViewModeEventArgs.cs
- InheritedPropertyChangedEventArgs.cs
- NativeRecognizer.cs
- JapaneseCalendar.cs
- PropertyBuilder.cs
- Style.cs
- SQLMembershipProvider.cs
- EllipseGeometry.cs
- FailedToStartupUIException.cs
- UpnEndpointIdentityExtension.cs
- FlowPanelDesigner.cs
- DataSourceCacheDurationConverter.cs
- FullTextState.cs
- ConfigViewGenerator.cs
- PingReply.cs
- LocatorGroup.cs
- ClientConfigPaths.cs
- EntityDataSourceWrapperCollection.cs
- TextProviderWrapper.cs
- _DynamicWinsockMethods.cs
- XmlMembersMapping.cs
- SecurityKeyIdentifier.cs
- SafeRightsManagementHandle.cs
- AccessDataSourceView.cs
- ColorTranslator.cs
- ListControl.cs
- SafeRightsManagementSessionHandle.cs
- securitymgrsite.cs
- XmlLanguage.cs
- ResourceReferenceExpression.cs
- DependencyStoreSurrogate.cs
- InkCollectionBehavior.cs
- BrowserInteropHelper.cs
- CodeDelegateCreateExpression.cs
- ComplexType.cs
- SafePointer.cs
- QuadraticBezierSegment.cs
- ExtractorMetadata.cs
- SystemParameters.cs
- RectangleF.cs
- Label.cs
- SqlNotificationRequest.cs
- RawStylusActions.cs
- RequiredFieldValidator.cs
- RunInstallerAttribute.cs
- SqlRowUpdatedEvent.cs
- securitycriticaldata.cs
- ChangeProcessor.cs
- DefaultPerformanceCounters.cs
- Knowncolors.cs
- DiscoveryClientChannelFactory.cs
- LoadedOrUnloadedOperation.cs
- AsyncPostBackErrorEventArgs.cs
- ServiceReference.cs
- TextAction.cs
- BaseCollection.cs
- SchemaMapping.cs
- XmlComment.cs
- TableCellCollection.cs
- TabControlCancelEvent.cs
- VideoDrawing.cs
- Stroke.cs
- ToolboxDataAttribute.cs
- SoapAttributes.cs
- XmlTypeAttribute.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- EventWaitHandle.cs
- EncryptedType.cs
- DockPanel.cs
- CodeAttributeDeclaration.cs
- HttpCacheParams.cs
- MenuCommand.cs
- NullReferenceException.cs
- MemberMaps.cs
- ImageBrush.cs