Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / SetterBase.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MessageRpc.cs
- EncodingDataItem.cs
- TimeZone.cs
- HttpListenerResponse.cs
- WorkflowRuntimeBehavior.cs
- Attributes.cs
- PathTooLongException.cs
- HttpModuleAction.cs
- TrailingSpaceComparer.cs
- DesignerEventService.cs
- PagesChangedEventArgs.cs
- wpf-etw.cs
- ConditionalAttribute.cs
- FlowDecisionDesigner.xaml.cs
- SubqueryTrackingVisitor.cs
- HighlightVisual.cs
- SoapReflectionImporter.cs
- DBAsyncResult.cs
- ArcSegment.cs
- Literal.cs
- AutomationPatternInfo.cs
- Parameter.cs
- MenuItemBinding.cs
- Clause.cs
- DeclarativeCatalogPartDesigner.cs
- followingsibling.cs
- ScriptComponentDescriptor.cs
- JoinSymbol.cs
- AppLevelCompilationSectionCache.cs
- ServiceCredentialsSecurityTokenManager.cs
- datacache.cs
- UserControlDocumentDesigner.cs
- ImageListStreamer.cs
- SQLSingle.cs
- UserPreferenceChangedEventArgs.cs
- HierarchicalDataSourceControl.cs
- WhereQueryOperator.cs
- PresentationSource.cs
- ToolStripArrowRenderEventArgs.cs
- HyperlinkAutomationPeer.cs
- Process.cs
- BaseConfigurationRecord.cs
- HtmlInputRadioButton.cs
- ApplicationSettingsBase.cs
- DataGridViewCell.cs
- Section.cs
- PropertyTabAttribute.cs
- LostFocusEventManager.cs
- StringConverter.cs
- DataSourceControl.cs
- ObjectStateFormatter.cs
- WindowsContainer.cs
- ConstraintCollection.cs
- ByteConverter.cs
- ArithmeticException.cs
- ReadOnlyHierarchicalDataSource.cs
- TypeElement.cs
- IItemContainerGenerator.cs
- ByteAnimation.cs
- LogLogRecordHeader.cs
- SqlCacheDependencyDatabase.cs
- LoginCancelEventArgs.cs
- ImageListStreamer.cs
- LateBoundBitmapDecoder.cs
- TagPrefixInfo.cs
- WorkflowInlining.cs
- ImageInfo.cs
- BitmapSourceSafeMILHandle.cs
- SqlOuterApplyReducer.cs
- IIS7WorkerRequest.cs
- SqlNotificationRequest.cs
- SupportsEventValidationAttribute.cs
- SqlUtils.cs
- ProcessHost.cs
- DebugManager.cs
- UITypeEditor.cs
- SharedPerformanceCounter.cs
- QueryHandler.cs
- EntityStoreSchemaGenerator.cs
- XamlWriter.cs
- TypeDescriptor.cs
- ContextDataSourceView.cs
- QuotaThrottle.cs
- Events.cs
- Crc32.cs
- HtmlInputCheckBox.cs
- EllipticalNodeOperations.cs
- XmlSchemaRedefine.cs
- EventBuilder.cs
- isolationinterop.cs
- XmlChoiceIdentifierAttribute.cs
- RbTree.cs
- TabControlCancelEvent.cs
- RoutedEventConverter.cs
- LinkedResource.cs
- NativeMethods.cs
- CodeBlockBuilder.cs
- NumericUpDown.cs
- ExpressionVisitor.cs
- XmlBindingWorker.cs