Code:
/ 4.0 / 4.0 / 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. /****************************************************************************\ * * 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
- XmlSchemaSimpleContentExtension.cs
- WinCategoryAttribute.cs
- ModelPropertyCollectionImpl.cs
- SafeFindHandle.cs
- ReflectionServiceProvider.cs
- PowerStatus.cs
- Flowchart.cs
- XmlSerializerFactory.cs
- GeneralTransform3DTo2D.cs
- EntityProviderServices.cs
- HtmlFormParameterReader.cs
- FrameworkReadOnlyPropertyMetadata.cs
- SrgsRule.cs
- unsafeIndexingFilterStream.cs
- ProtectedConfigurationProviderCollection.cs
- GridItem.cs
- VerticalAlignConverter.cs
- PointHitTestResult.cs
- ModelUtilities.cs
- EntitySetDataBindingList.cs
- ExpandedWrapper.cs
- SecurityTokenValidationException.cs
- RootBuilder.cs
- WriteableBitmap.cs
- ConvertEvent.cs
- NonClientArea.cs
- ZoneLinkButton.cs
- ConnectionsZoneAutoFormat.cs
- SplashScreenNativeMethods.cs
- WeakEventTable.cs
- VisualBasicImportReference.cs
- XmlHierarchicalEnumerable.cs
- ClientApiGenerator.cs
- FileUtil.cs
- XmlSchemaSimpleTypeUnion.cs
- XmlSchemaType.cs
- WsatExtendedInformation.cs
- SqlTypesSchemaImporter.cs
- ProxyWebPartManagerDesigner.cs
- Exceptions.cs
- XPathDocumentNavigator.cs
- DataViewSettingCollection.cs
- DesignerValidationSummaryAdapter.cs
- XappLauncher.cs
- ImageListImageEditor.cs
- ToolStripItemCollection.cs
- IBuiltInEvidence.cs
- SystemKeyConverter.cs
- ToolBarButtonDesigner.cs
- HostProtectionException.cs
- oledbmetadatacollectionnames.cs
- CreateBookmarkScope.cs
- AvTraceDetails.cs
- SimpleColumnProvider.cs
- RegexFCD.cs
- SqlParameterCollection.cs
- SoapInteropTypes.cs
- XsltContext.cs
- PassportAuthenticationModule.cs
- UrlAuthFailedErrorFormatter.cs
- InternalPermissions.cs
- DNS.cs
- ConstNode.cs
- CreateUserWizardStep.cs
- Reference.cs
- OletxResourceManager.cs
- ConfigurationLockCollection.cs
- GeneralTransform.cs
- SatelliteContractVersionAttribute.cs
- DataControlFieldHeaderCell.cs
- KeyedHashAlgorithm.cs
- PaintEvent.cs
- UIPermission.cs
- ZipIOCentralDirectoryBlock.cs
- TextTreeText.cs
- BindMarkupExtensionSerializer.cs
- KeyNotFoundException.cs
- ServiceDurableInstance.cs
- Thread.cs
- SqlLiftIndependentRowExpressions.cs
- MessagePropertyFilter.cs
- Hyperlink.cs
- ClipboardProcessor.cs
- NCryptSafeHandles.cs
- FactoryId.cs
- TreeNodeEventArgs.cs
- PolyBezierSegment.cs
- SqlUtil.cs
- IIS7WorkerRequest.cs
- SynchronizedDispatch.cs
- followingquery.cs
- ColorAnimation.cs
- PerfService.cs
- ConnectionManagementElement.cs
- RegionIterator.cs
- DateBoldEvent.cs
- ScriptingJsonSerializationSection.cs
- ImageButton.cs
- BitmapEffect.cs
- ItemAutomationPeer.cs