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
- _OSSOCK.cs
- OpenTypeCommon.cs
- XhtmlConformanceSection.cs
- SignatureHelper.cs
- FrameDimension.cs
- COM2EnumConverter.cs
- SiteMapNode.cs
- SignatureDescription.cs
- GraphicsPath.cs
- TextServicesProperty.cs
- Dynamic.cs
- ToolStripItem.cs
- QuaternionAnimationBase.cs
- SessionPageStateSection.cs
- BuildProvider.cs
- HttpHandlerActionCollection.cs
- BinaryUtilClasses.cs
- RectAnimation.cs
- Rules.cs
- WindowsBrush.cs
- MultiSelector.cs
- ViewGenResults.cs
- HttpRuntime.cs
- _TLSstream.cs
- ComponentResourceManager.cs
- AssociationEndMember.cs
- StringKeyFrameCollection.cs
- CodePageUtils.cs
- BindingContext.cs
- DriveInfo.cs
- LicFileLicenseProvider.cs
- EntitySetRetriever.cs
- XmlTypeMapping.cs
- DeferredTextReference.cs
- KeyProperty.cs
- StylusDevice.cs
- XmlDataSource.cs
- DBNull.cs
- ImageField.cs
- DesignOnlyAttribute.cs
- _PooledStream.cs
- LabelLiteral.cs
- ByeOperation11AsyncResult.cs
- MenuItem.cs
- JavaScriptString.cs
- PolicyManager.cs
- Rule.cs
- MSAAEventDispatcher.cs
- ThumbAutomationPeer.cs
- ErrorHandler.cs
- TemplateLookupAction.cs
- UrlPropertyAttribute.cs
- XmlTypeMapping.cs
- ProvidePropertyAttribute.cs
- SvcMapFileLoader.cs
- SessionIDManager.cs
- ApplicationSecurityManager.cs
- ReadOnlyDictionary.cs
- GridSplitter.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- BinHexDecoder.cs
- FontInfo.cs
- ResourceReader.cs
- DataServiceContext.cs
- WebConfigurationManager.cs
- OneWayBindingElementImporter.cs
- FormViewUpdateEventArgs.cs
- TypeConverters.cs
- XmlIlGenerator.cs
- DetailsViewRow.cs
- ProcessInfo.cs
- MachineKeySection.cs
- DataGridViewCellStyleBuilderDialog.cs
- WebContext.cs
- SizeChangedInfo.cs
- ScriptingSectionGroup.cs
- EntitySetBase.cs
- XmlBoundElement.cs
- SmtpClient.cs
- StrongTypingException.cs
- SecUtil.cs
- PropertyGridView.cs
- OutputCacheProfile.cs
- HttpRequestWrapper.cs
- ObjectListDesigner.cs
- IconConverter.cs
- ChtmlTextWriter.cs
- EdmItemCollection.cs
- DesignerRegionCollection.cs
- TraceUtility.cs
- IndexedString.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- VariableQuery.cs
- ResXBuildProvider.cs
- BridgeDataReader.cs
- RegexMatch.cs
- ObjectView.cs
- _FtpControlStream.cs
- SafeTokenHandle.cs
- GridEntryCollection.cs