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
- DataGridHyperlinkColumn.cs
- AuditLog.cs
- Int32Converter.cs
- EpmSyndicationContentDeSerializer.cs
- SchemaObjectWriter.cs
- FileDialog.cs
- DeferredSelectedIndexReference.cs
- DefaultTextStore.cs
- FixedHyperLink.cs
- DataGridViewTextBoxEditingControl.cs
- ResourceManager.cs
- ArgumentOutOfRangeException.cs
- DataListItemCollection.cs
- ObjectNotFoundException.cs
- SourceLineInfo.cs
- Propagator.ExtentPlaceholderCreator.cs
- ModelServiceImpl.cs
- UidManager.cs
- KeyedHashAlgorithm.cs
- ChannelSinkStacks.cs
- Int32Storage.cs
- ExpressionBindingCollection.cs
- Drawing.cs
- LabelAutomationPeer.cs
- ExpandableObjectConverter.cs
- SystemIcmpV4Statistics.cs
- LightweightCodeGenerator.cs
- KeyGesture.cs
- RunClient.cs
- MatrixAnimationBase.cs
- ToolStripPanelCell.cs
- Tokenizer.cs
- BitmapEffectDrawingContextWalker.cs
- HttpApplicationFactory.cs
- DataMemberConverter.cs
- LockRecursionException.cs
- DbExpressionVisitor_TResultType.cs
- SqlAggregateChecker.cs
- DataGridViewCellStyleConverter.cs
- DefaultExpressionVisitor.cs
- dtdvalidator.cs
- DataGridViewUtilities.cs
- Visual3DCollection.cs
- DiscoveryExceptionDictionary.cs
- RoleManagerSection.cs
- SqlAliaser.cs
- HwndSourceParameters.cs
- XmlObjectSerializerWriteContext.cs
- PersonalizationStateInfo.cs
- TransformerInfoCollection.cs
- Helpers.cs
- MsmqIntegrationChannelListener.cs
- PartialTrustHelpers.cs
- WebBrowserHelper.cs
- XmlSchemaSimpleContent.cs
- WindowInteropHelper.cs
- MeasureData.cs
- UnsafeNativeMethods.cs
- CommentEmitter.cs
- XmlImplementation.cs
- PipelineModuleStepContainer.cs
- IssuedTokenClientBehaviorsElement.cs
- XmlDocumentSerializer.cs
- ImageSourceValueSerializer.cs
- DataGridComboBoxColumn.cs
- ResourcePart.cs
- RewritingValidator.cs
- FacetDescription.cs
- mongolianshape.cs
- ImageAutomationPeer.cs
- RotateTransform3D.cs
- RSAPKCS1SignatureFormatter.cs
- ImportCatalogPart.cs
- TextStore.cs
- ArglessEventHandlerProxy.cs
- BamlResourceContent.cs
- DoubleCollectionValueSerializer.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- DataList.cs
- DocumentViewerBaseAutomationPeer.cs
- StrongNamePublicKeyBlob.cs
- FilterException.cs
- NotSupportedException.cs
- TreeView.cs
- InputLanguageSource.cs
- CompModSwitches.cs
- PasswordBox.cs
- UiaCoreTypesApi.cs
- XmlDictionaryReader.cs
- RuleInfoComparer.cs
- SolidColorBrush.cs
- EventListener.cs
- WebBrowserContainer.cs
- EntityDataSourceContextDisposingEventArgs.cs
- TreeNodeBindingCollection.cs
- _RegBlobWebProxyDataBuilder.cs
- DayRenderEvent.cs
- SafeFileMappingHandle.cs
- SystemDropShadowChrome.cs
- Baml2006ReaderFrame.cs