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
- PerformanceCounterPermissionEntryCollection.cs
- CodeVariableReferenceExpression.cs
- GridItemPattern.cs
- TypefaceMetricsCache.cs
- XsltFunctions.cs
- ReplyChannelBinder.cs
- DataGridColumnHeader.cs
- EditingCommands.cs
- filewebresponse.cs
- EndOfStreamException.cs
- HitTestResult.cs
- XmlCharCheckingWriter.cs
- ListViewTableRow.cs
- ToolStripLabel.cs
- Accessible.cs
- DataGridViewCellValueEventArgs.cs
- SafeNativeMethodsOther.cs
- SqlUserDefinedAggregateAttribute.cs
- DifferencingCollection.cs
- ParallelTimeline.cs
- RowBinding.cs
- ReflectionHelper.cs
- AmbientLight.cs
- SchemaNamespaceManager.cs
- QuaternionKeyFrameCollection.cs
- UserControlDocumentDesigner.cs
- NaturalLanguageHyphenator.cs
- RemoteWebConfigurationHostServer.cs
- Grid.cs
- Rotation3DAnimation.cs
- XmlSchemaExternal.cs
- EntityTypeBase.cs
- PersonalizableAttribute.cs
- DateTimePicker.cs
- PropertyFilterAttribute.cs
- HealthMonitoringSectionHelper.cs
- SiteMapProvider.cs
- VectorCollectionConverter.cs
- XmlTextWriter.cs
- ActivityDesignerHelper.cs
- CompilerState.cs
- SemanticBasicElement.cs
- ZipIOBlockManager.cs
- ListViewDeleteEventArgs.cs
- MenuEventArgs.cs
- GroupQuery.cs
- CodeGotoStatement.cs
- EntityDataSourceDesignerHelper.cs
- FixedSOMPage.cs
- Adorner.cs
- FillErrorEventArgs.cs
- DataGridViewRow.cs
- Vector3DAnimationUsingKeyFrames.cs
- BitmapInitialize.cs
- AnonymousIdentificationModule.cs
- ExeConfigurationFileMap.cs
- HttpDictionary.cs
- SoapServerProtocol.cs
- ExpressionBindings.cs
- FieldAccessException.cs
- ShaperBuffers.cs
- XmlDataCollection.cs
- AmbientLight.cs
- Privilege.cs
- Listbox.cs
- XmlRootAttribute.cs
- XmlValueConverter.cs
- WriteTimeStream.cs
- LinkAreaEditor.cs
- SymmetricKeyWrap.cs
- ListViewInsertionMark.cs
- Item.cs
- XmlILStorageConverter.cs
- ToolboxItemCollection.cs
- BitStack.cs
- User.cs
- BamlTreeNode.cs
- DiscoveryMessageSequence11.cs
- ToolStripTextBox.cs
- NamespaceCollection.cs
- ManipulationStartedEventArgs.cs
- ToolBarDesigner.cs
- EntityDesignerBuildProvider.cs
- DefaultEventAttribute.cs
- Parallel.cs
- _NTAuthentication.cs
- RepeaterCommandEventArgs.cs
- WeakEventTable.cs
- WebPermission.cs
- SecurityElement.cs
- TreeNode.cs
- CoreSwitches.cs
- Semaphore.cs
- InfoCardSymmetricAlgorithm.cs
- ButtonColumn.cs
- ToolStripSplitStackLayout.cs
- ProfileEventArgs.cs
- DocumentViewer.cs
- Int64Converter.cs
- StringBuilder.cs