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
- PathFigureCollectionConverter.cs
- EventDrivenDesigner.cs
- DoubleLinkList.cs
- CheckoutException.cs
- AuthenticationException.cs
- ReliableChannelBinder.cs
- StackSpiller.Bindings.cs
- BindUriHelper.cs
- FormatterServices.cs
- MarkupWriter.cs
- DataGridViewCellParsingEventArgs.cs
- HtmlToClrEventProxy.cs
- CompiledAction.cs
- ArcSegment.cs
- EntityDataReader.cs
- HoistedLocals.cs
- ExtenderHelpers.cs
- _ListenerAsyncResult.cs
- XmlIlGenerator.cs
- StringUtil.cs
- ZipIOExtraFieldElement.cs
- Typeface.cs
- LinearKeyFrames.cs
- DateTimeFormat.cs
- ResolveNameEventArgs.cs
- RenderData.cs
- SynchronizedInputProviderWrapper.cs
- WhileDesigner.cs
- SqlSupersetValidator.cs
- EventLogEntry.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ReferenceService.cs
- OracleString.cs
- UiaCoreApi.cs
- PointHitTestParameters.cs
- EventListenerClientSide.cs
- GraphicsPathIterator.cs
- HitTestParameters3D.cs
- PaintValueEventArgs.cs
- CodeThrowExceptionStatement.cs
- ChannelDemuxer.cs
- PerfCounterSection.cs
- Function.cs
- CryptoApi.cs
- PackageRelationshipCollection.cs
- SoapTransportImporter.cs
- ObjectCacheSettings.cs
- WindowsPrincipal.cs
- Rect.cs
- AtomContentProperty.cs
- EditorPartChrome.cs
- TemplatedWizardStep.cs
- SchemaTableOptionalColumn.cs
- PermissionSet.cs
- Timer.cs
- HttpCachePolicy.cs
- SqlServer2KCompatibilityAnnotation.cs
- HttpPostProtocolImporter.cs
- GridViewSelectEventArgs.cs
- AndCondition.cs
- DSACryptoServiceProvider.cs
- ConfigurationHandlersInstallComponent.cs
- DoubleAnimationUsingPath.cs
- HideDisabledControlAdapter.cs
- XmlArrayItemAttribute.cs
- FrameworkRichTextComposition.cs
- HelloOperationAsyncResult.cs
- IndependentAnimationStorage.cs
- ProviderConnectionPointCollection.cs
- RegisteredScript.cs
- SoapReflectionImporter.cs
- ObjectCloneHelper.cs
- FigureHelper.cs
- TileBrush.cs
- WebConfigurationFileMap.cs
- UmAlQuraCalendar.cs
- DataTableExtensions.cs
- DispatcherObject.cs
- ArraySegment.cs
- Compress.cs
- GridViewRowCollection.cs
- CodeObjectCreateExpression.cs
- XMLSyntaxException.cs
- XmlNodeComparer.cs
- SqlReferenceCollection.cs
- XmlSchemaSimpleContentRestriction.cs
- InstanceData.cs
- UseAttributeSetsAction.cs
- Registry.cs
- PackageRelationship.cs
- WindowsToolbarAsMenu.cs
- DelayedRegex.cs
- TransactedReceiveScope.cs
- ICspAsymmetricAlgorithm.cs
- SamlAuthenticationStatement.cs
- XmlSchemaExporter.cs
- TTSEngineTypes.cs
- SafeHandle.cs
- altserialization.cs
- RoutingTable.cs