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
- DropDownButton.cs
- CustomErrorsSection.cs
- ObjectQuery_EntitySqlExtensions.cs
- HttpHandler.cs
- RequestContextBase.cs
- ProviderCollection.cs
- DataObjectPastingEventArgs.cs
- Wizard.cs
- IIS7UserPrincipal.cs
- WebPartCloseVerb.cs
- Code.cs
- ItemCollectionEditor.cs
- PrintDialogException.cs
- ChangeConflicts.cs
- DataSourceSelectArguments.cs
- XmlAggregates.cs
- GenericParameterDataContract.cs
- TrustManagerPromptUI.cs
- webbrowsersite.cs
- RadioButtonPopupAdapter.cs
- SchemaMerger.cs
- HeaderCollection.cs
- AutomationElementCollection.cs
- ContextBase.cs
- DuplicateContext.cs
- RoleService.cs
- CodeSubDirectory.cs
- LostFocusEventManager.cs
- QueryAsyncResult.cs
- TokenBasedSetEnumerator.cs
- ConfigurationValidatorAttribute.cs
- SystemIPGlobalStatistics.cs
- BitmapEffectState.cs
- RpcCryptoContext.cs
- BaseAsyncResult.cs
- AesManaged.cs
- Vector3DIndependentAnimationStorage.cs
- BufferAllocator.cs
- FtpCachePolicyElement.cs
- SubMenuStyle.cs
- ConstraintStruct.cs
- MaskedTextBoxDesigner.cs
- DataFieldEditor.cs
- MgmtConfigurationRecord.cs
- SerializationEventsCache.cs
- ExtenderControl.cs
- ProvideValueServiceProvider.cs
- PeekCompletedEventArgs.cs
- UnmanagedMemoryStreamWrapper.cs
- PropertyPathConverter.cs
- SByte.cs
- ReflectTypeDescriptionProvider.cs
- TableAutomationPeer.cs
- HtmlInputButton.cs
- followingquery.cs
- DiscoveryDefaults.cs
- XmlAnyElementAttribute.cs
- DocumentViewerConstants.cs
- DynamicArgumentDesigner.xaml.cs
- VisualSerializer.cs
- WebSysDisplayNameAttribute.cs
- Subordinate.cs
- MILUtilities.cs
- SystemFonts.cs
- Equal.cs
- X500Name.cs
- CmsInterop.cs
- DocumentViewerHelper.cs
- Section.cs
- SqlBooleanMismatchVisitor.cs
- XPathException.cs
- SimpleTextLine.cs
- WizardSideBarListControlItemEventArgs.cs
- HttpInputStream.cs
- ProcessInputEventArgs.cs
- PenContexts.cs
- ColorConverter.cs
- InertiaTranslationBehavior.cs
- UnconditionalPolicy.cs
- GregorianCalendarHelper.cs
- _LoggingObject.cs
- ExtensionQuery.cs
- DependencyPropertyValueSerializer.cs
- XmlSerializerVersionAttribute.cs
- SecurityTokenAuthenticator.cs
- UnitySerializationHolder.cs
- TextServicesHost.cs
- ValueChangedEventManager.cs
- CurrencyWrapper.cs
- ResourceDescriptionAttribute.cs
- BehaviorEditorPart.cs
- FormsIdentity.cs
- AlignmentYValidation.cs
- DelegatedStream.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- JoinElimination.cs
- base64Transforms.cs
- TabPanel.cs
- FixedDSBuilder.cs
- ObjectViewListener.cs