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
- GroupAggregateExpr.cs
- BitmapEffectDrawing.cs
- TimeoutException.cs
- ManagedWndProcTracker.cs
- RowToParametersTransformer.cs
- TimeSpanValidatorAttribute.cs
- RC2CryptoServiceProvider.cs
- MsmqIntegrationSecurity.cs
- CustomBindingElement.cs
- EntityExpressionVisitor.cs
- SqlTypeConverter.cs
- SignatureDescription.cs
- CheckBoxBaseAdapter.cs
- XmlILAnnotation.cs
- DesigntimeLicenseContextSerializer.cs
- X509Certificate2Collection.cs
- xmlsaver.cs
- WebPartDisplayModeEventArgs.cs
- util.cs
- Tablet.cs
- PagesSection.cs
- SoapCodeExporter.cs
- SafeEventLogReadHandle.cs
- LinqMaximalSubtreeNominator.cs
- WSDualHttpBindingCollectionElement.cs
- DATA_BLOB.cs
- PageFunction.cs
- ControlBindingsCollection.cs
- EnumUnknown.cs
- ModelPerspective.cs
- RIPEMD160.cs
- XmlDataSource.cs
- VarRefManager.cs
- JulianCalendar.cs
- CellTreeNodeVisitors.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- DrawingBrush.cs
- StyleSelector.cs
- IntSecurity.cs
- ServiceEndpointElement.cs
- DefaultProfileManager.cs
- GenericQueueSurrogate.cs
- TriggerActionCollection.cs
- FixedTextView.cs
- UpDownBase.cs
- BinaryNode.cs
- SplitterPanelDesigner.cs
- EditBehavior.cs
- CompoundFileStorageReference.cs
- NativeMethods.cs
- ThrowHelper.cs
- BinaryObjectInfo.cs
- AsymmetricAlgorithm.cs
- InvalidComObjectException.cs
- MatrixCamera.cs
- OptimalTextSource.cs
- Keywords.cs
- AsymmetricSignatureFormatter.cs
- GeneralTransform3D.cs
- HostedNamedPipeTransportManager.cs
- GC.cs
- Converter.cs
- DateTimeOffset.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- Task.cs
- ColorTranslator.cs
- DataGridCell.cs
- MultiPropertyDescriptorGridEntry.cs
- XmlSchemaCollection.cs
- InvalidateEvent.cs
- SqlDataSource.cs
- WebPartZoneCollection.cs
- ToolStripItemClickedEventArgs.cs
- HttpRuntimeSection.cs
- Misc.cs
- RegionInfo.cs
- TextTreeText.cs
- ParamArrayAttribute.cs
- HexParser.cs
- AudioSignalProblemOccurredEventArgs.cs
- WebPartCancelEventArgs.cs
- KeyEventArgs.cs
- PDBReader.cs
- CharConverter.cs
- MailMessage.cs
- ConnectionProviderAttribute.cs
- GraphicsState.cs
- DataControlFieldCell.cs
- ActivityExecutor.cs
- AsymmetricKeyExchangeDeformatter.cs
- EnumUnknown.cs
- SqlDependencyListener.cs
- ManagementExtension.cs
- EnvelopeVersion.cs
- SelectManyQueryOperator.cs
- DES.cs
- CallbackWrapper.cs
- Int64AnimationUsingKeyFrames.cs
- RtfControls.cs
- AnnotationAuthorChangedEventArgs.cs