Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Framework / System / Windows / SetterBase.cs / 1 / SetterBase.cs
/****************************************************************************\
*
* File: SetterBase.cs
*
* TargetType property and event setting base class.
*
* Copyright (C) 2004 by Microsoft Corporation. All rights reserved.
*
\***************************************************************************/
namespace System.Windows
{
///
/// TargetType property and event setting base class.
///
[Localizability(LocalizationCategory.Ignore)]
public abstract class SetterBase
{
///
/// SetterBase construction
///
internal SetterBase()
{
}
///
/// Returns the sealed state of this object. If true, any attempt
/// at modifying the state of this object will trigger an exception.
///
public bool IsSealed
{
get
{
return _sealed;
}
}
internal virtual void Seal()
{
_sealed = true;
}
///
/// Subclasses need to call this method before any changes to their state.
///
protected void CheckSealed()
{
if ( _sealed )
{
throw new InvalidOperationException(SR.Get(SRID.CannotChangeAfterSealed, "SetterBase"));
}
}
// Derived
private bool _sealed;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
/****************************************************************************\
*
* File: SetterBase.cs
*
* TargetType property and event setting base class.
*
* Copyright (C) 2004 by Microsoft Corporation. All rights reserved.
*
\***************************************************************************/
namespace System.Windows
{
///
/// TargetType property and event setting base class.
///
[Localizability(LocalizationCategory.Ignore)]
public abstract class SetterBase
{
///
/// SetterBase construction
///
internal SetterBase()
{
}
///
/// Returns the sealed state of this object. If true, any attempt
/// at modifying the state of this object will trigger an exception.
///
public bool IsSealed
{
get
{
return _sealed;
}
}
internal virtual void Seal()
{
_sealed = true;
}
///
/// Subclasses need to call this method before any changes to their state.
///
protected void CheckSealed()
{
if ( _sealed )
{
throw new InvalidOperationException(SR.Get(SRID.CannotChangeAfterSealed, "SetterBase"));
}
}
// Derived
private bool _sealed;
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SimpleLine.cs
- EndpointInfo.cs
- RawStylusInput.cs
- Classification.cs
- AppModelKnownContentFactory.cs
- RequestQueryParser.cs
- StructuredType.cs
- FormsAuthenticationUser.cs
- LassoSelectionBehavior.cs
- WindowsScroll.cs
- ExpressionPrinter.cs
- X509Chain.cs
- SqlUDTStorage.cs
- OracleInternalConnection.cs
- TextTreeInsertUndoUnit.cs
- FrugalMap.cs
- GenerateScriptTypeAttribute.cs
- XmlValueConverter.cs
- TextDecoration.cs
- HybridWebProxyFinder.cs
- SatelliteContractVersionAttribute.cs
- DataProtection.cs
- WeakRefEnumerator.cs
- EventLogEntryCollection.cs
- GridViewRowCollection.cs
- HybridWebProxyFinder.cs
- SqlDataSourceQueryEditor.cs
- CubicEase.cs
- StorageBasedPackageProperties.cs
- ToolStripRendererSwitcher.cs
- RtfControls.cs
- PrintPageEvent.cs
- ExtendedPropertyCollection.cs
- ContentPlaceHolder.cs
- TextEditorParagraphs.cs
- WebCategoryAttribute.cs
- ComNativeDescriptor.cs
- XmlQueryType.cs
- SqlClientFactory.cs
- XPathParser.cs
- DataTrigger.cs
- InstanceHandleConflictException.cs
- CodeTypeOfExpression.cs
- SiteMapProvider.cs
- RegexWriter.cs
- UDPClient.cs
- TextControl.cs
- ShapingWorkspace.cs
- FrameworkElementAutomationPeer.cs
- Rectangle.cs
- BaseParser.cs
- HtmlFormWrapper.cs
- EncryptedXml.cs
- DataGridViewSelectedColumnCollection.cs
- SerializationObjectManager.cs
- DateTimeConstantAttribute.cs
- WmlCommandAdapter.cs
- ReflectionServiceProvider.cs
- DataPointer.cs
- List.cs
- DataServiceRequestException.cs
- WindowsIPAddress.cs
- BuildManager.cs
- Adorner.cs
- ColumnMapCopier.cs
- SqlDataSourceCommandEventArgs.cs
- NetworkAddressChange.cs
- AdapterUtil.cs
- CanExpandCollapseAllConverter.cs
- DesignerMetadata.cs
- OracleInternalConnection.cs
- WindowsRegion.cs
- InternalSafeNativeMethods.cs
- HWStack.cs
- EventEntry.cs
- DataIdProcessor.cs
- TabPanel.cs
- DefaultEventAttribute.cs
- XmlTextReaderImplHelpers.cs
- WebPartAddingEventArgs.cs
- EnumerableCollectionView.cs
- EntityDataSourceValidationException.cs
- RegistryDataKey.cs
- CodeDomConfigurationHandler.cs
- SHA256CryptoServiceProvider.cs
- TableLayoutColumnStyleCollection.cs
- AuthorizationContext.cs
- GridErrorDlg.cs
- FileDialogCustomPlace.cs
- OutputCacheProfileCollection.cs
- EmptyReadOnlyDictionaryInternal.cs
- LOSFormatter.cs
- UidManager.cs
- MailMessageEventArgs.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- DbInsertCommandTree.cs
- BCLDebug.cs
- ListViewGroupCollectionEditor.cs
- XamlReader.cs
- RowType.cs