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
- GlobalizationAssembly.cs
- DataGridViewCell.cs
- DbConnectionPoolGroupProviderInfo.cs
- BitFlagsGenerator.cs
- XmlDataSourceView.cs
- MatchingStyle.cs
- CompositeDataBoundControl.cs
- DocumentGridContextMenu.cs
- GradientStop.cs
- GeometryValueSerializer.cs
- ProfileProvider.cs
- LockedAssemblyCache.cs
- WmiEventSink.cs
- GridViewUpdateEventArgs.cs
- SmiEventSink_Default.cs
- Expressions.cs
- ResourcesBuildProvider.cs
- XmlNodeChangedEventArgs.cs
- ConnectionManager.cs
- BufferModeSettings.cs
- ThemeDirectoryCompiler.cs
- ObjectListCommand.cs
- XmlSerializationWriter.cs
- EntityContainerRelationshipSetEnd.cs
- Trace.cs
- listitem.cs
- XslTransform.cs
- GlyphingCache.cs
- PropertyFilter.cs
- VisualProxy.cs
- UpdateException.cs
- FlowNode.cs
- HttpListenerPrefixCollection.cs
- DbProviderServices.cs
- BufferedMessageData.cs
- DocumentGridContextMenu.cs
- SortDescription.cs
- Int64AnimationUsingKeyFrames.cs
- DataControlFieldCollection.cs
- ConfigurationPropertyCollection.cs
- UserControl.cs
- DbTypeMap.cs
- ExpressionHelper.cs
- SingleKeyFrameCollection.cs
- DataListComponentEditor.cs
- TraceSection.cs
- InvalidFilterCriteriaException.cs
- ErrorTolerantObjectWriter.cs
- TemplatedAdorner.cs
- Menu.cs
- XmlStringTable.cs
- GiveFeedbackEventArgs.cs
- SqlExpander.cs
- ExchangeUtilities.cs
- FtpCachePolicyElement.cs
- CqlLexer.cs
- BaseValidator.cs
- BulletedList.cs
- PrivilegedConfigurationManager.cs
- FontSizeConverter.cs
- ProtocolsConfigurationHandler.cs
- DoubleKeyFrameCollection.cs
- ViewCellSlot.cs
- MimeTypePropertyAttribute.cs
- ResourceDictionary.cs
- UIntPtr.cs
- InvalidCastException.cs
- X509SubjectKeyIdentifierClause.cs
- HttpResponseBase.cs
- IODescriptionAttribute.cs
- ObjectReaderCompiler.cs
- BitmapEffectGroup.cs
- EncoderBestFitFallback.cs
- ToolBarButton.cs
- XmlNode.cs
- PackageRelationship.cs
- LocalFileSettingsProvider.cs
- PropertyInfo.cs
- FixedTextPointer.cs
- EncoderParameters.cs
- WindowsContainer.cs
- UTF32Encoding.cs
- EntityDataSourceWrapper.cs
- SHA1.cs
- CultureInfoConverter.cs
- TransformPattern.cs
- LinearGradientBrush.cs
- ObjectTypeMapping.cs
- SoapTypeAttribute.cs
- ApplicationHost.cs
- RawUIStateInputReport.cs
- AssertFilter.cs
- PrimarySelectionGlyph.cs
- TextTreeRootNode.cs
- VSWCFServiceContractGenerator.cs
- ConnectionPointCookie.cs
- DefaultValueTypeConverter.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- StrokeNode.cs
- SecureUICommand.cs