Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BinaryCommonClasses.cs
- VBIdentifierName.cs
- SettingsBase.cs
- ZoomPercentageConverter.cs
- TextCompositionManager.cs
- PropertyAccessVisitor.cs
- RelatedImageListAttribute.cs
- __FastResourceComparer.cs
- TypeBuilderInstantiation.cs
- HtmlInputText.cs
- ConfigurationPermission.cs
- ResourceDisplayNameAttribute.cs
- SafeFileHandle.cs
- SecurityTokenValidationException.cs
- Command.cs
- NavigationWindowAutomationPeer.cs
- ExcludePathInfo.cs
- HttpRuntimeSection.cs
- SecurityTokenInclusionMode.cs
- securitycriticaldataClass.cs
- ComponentEditorPage.cs
- DbConnectionOptions.cs
- WebPartConnectionsConnectVerb.cs
- ToolStripItemGlyph.cs
- TranslateTransform.cs
- PickBranchDesigner.xaml.cs
- DisableDpiAwarenessAttribute.cs
- DataContext.cs
- Size3DConverter.cs
- TypeToArgumentTypeConverter.cs
- ActiveDocumentEvent.cs
- BlockUIContainer.cs
- webeventbuffer.cs
- columnmapkeybuilder.cs
- AppDomain.cs
- SmiMetaDataProperty.cs
- CmsInterop.cs
- CharEntityEncoderFallback.cs
- FontStretchConverter.cs
- SqlTypeSystemProvider.cs
- ElapsedEventArgs.cs
- MenuAutomationPeer.cs
- AppDomainUnloadedException.cs
- StylusPointPropertyInfoDefaults.cs
- StrongName.cs
- PassportIdentity.cs
- XmlCharType.cs
- PassportPrincipal.cs
- DependencyObjectProvider.cs
- MenuRendererClassic.cs
- OdbcEnvironmentHandle.cs
- DBParameter.cs
- DataRelationPropertyDescriptor.cs
- FaultPropagationRecord.cs
- XmlReflectionMember.cs
- Calendar.cs
- InstanceStore.cs
- RecipientIdentity.cs
- Column.cs
- LicenseProviderAttribute.cs
- ClientConfigurationHost.cs
- Odbc32.cs
- GcHandle.cs
- Vector.cs
- DocumentViewerBaseAutomationPeer.cs
- CompareValidator.cs
- DataGridCheckBoxColumn.cs
- BitmapFrame.cs
- SecurityPolicySection.cs
- Int32CollectionConverter.cs
- XmlSchemaComplexContent.cs
- RegexWorker.cs
- FeatureSupport.cs
- ArgumentException.cs
- ContractMapping.cs
- ChangePassword.cs
- CannotUnloadAppDomainException.cs
- Errors.cs
- ReliabilityContractAttribute.cs
- XmlSchemaSimpleContent.cs
- SqlUDTStorage.cs
- Lease.cs
- HierarchicalDataBoundControl.cs
- DataPagerFieldItem.cs
- Trace.cs
- IdleTimeoutMonitor.cs
- DiscoveryService.cs
- TransactionState.cs
- Package.cs
- GridEntryCollection.cs
- InkCollectionBehavior.cs
- RequestBringIntoViewEventArgs.cs
- AppLevelCompilationSectionCache.cs
- EntityContainerAssociationSet.cs
- PolicyException.cs
- UdpTransportBindingElement.cs
- RelatedImageListAttribute.cs
- InfoCardRSACryptoProvider.cs
- FacetChecker.cs
- NumericExpr.cs