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
- EmulateRecognizeCompletedEventArgs.cs
- OracleDateTime.cs
- NonSerializedAttribute.cs
- OleDbEnumerator.cs
- EntityViewGenerationConstants.cs
- GridView.cs
- XmlSchemaSimpleTypeRestriction.cs
- RijndaelManagedTransform.cs
- VariableReference.cs
- MsmqIntegrationSecurity.cs
- FastEncoder.cs
- DbConnectionStringBuilder.cs
- SystemColors.cs
- Mapping.cs
- BindingGraph.cs
- CompilationLock.cs
- DbMetaDataColumnNames.cs
- InsufficientMemoryException.cs
- IndexedGlyphRun.cs
- WindowsListViewGroupHelper.cs
- SerializationHelper.cs
- CheckPair.cs
- CreateRefExpr.cs
- DynamicMethod.cs
- EditorAttribute.cs
- HttpDigestClientCredential.cs
- brushes.cs
- WorkflowInstanceExtensionProvider.cs
- SafeNativeMethods.cs
- DynamicQueryableWrapper.cs
- ThreadStateException.cs
- DetailsViewInsertEventArgs.cs
- InputReferenceExpression.cs
- PkcsMisc.cs
- PropertyKey.cs
- NumberFormatter.cs
- ExpressionContext.cs
- AssociationType.cs
- __TransparentProxy.cs
- RuntimeArgumentHandle.cs
- SecurityDocument.cs
- ZipQueryOperator.cs
- SchemaImporterExtensionElementCollection.cs
- TextEvent.cs
- RelationshipFixer.cs
- StateDesigner.CommentLayoutGlyph.cs
- DataGrid.cs
- SatelliteContractVersionAttribute.cs
- HostAdapter.cs
- PageCopyCount.cs
- ImageFormatConverter.cs
- FileCodeGroup.cs
- GregorianCalendarHelper.cs
- TextTreeUndo.cs
- externdll.cs
- EventLogTraceListener.cs
- WorkflowInstanceQuery.cs
- CipherData.cs
- AutoGeneratedFieldProperties.cs
- XmlAnyElementAttribute.cs
- ParseChildrenAsPropertiesAttribute.cs
- ActivitySurrogate.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- XmlDownloadManager.cs
- SizeIndependentAnimationStorage.cs
- DataBoundControlDesigner.cs
- WebColorConverter.cs
- BaseDataList.cs
- ReceiveReply.cs
- XpsFilter.cs
- WindowAutomationPeer.cs
- StringUtil.cs
- TemplateField.cs
- BitmapDecoder.cs
- AttachedAnnotation.cs
- OdbcCommand.cs
- CompositeDuplexBindingElement.cs
- InheritedPropertyChangedEventArgs.cs
- xdrvalidator.cs
- MessageProtectionOrder.cs
- DirectoryLocalQuery.cs
- COM2PictureConverter.cs
- SqlCommandBuilder.cs
- RoleService.cs
- FileDialog.cs
- XmlILIndex.cs
- TextElement.cs
- MdImport.cs
- BooleanExpr.cs
- SelectionProviderWrapper.cs
- ErasingStroke.cs
- MetadataUtilsSmi.cs
- WebReference.cs
- OdbcEnvironmentHandle.cs
- RegistryConfigurationProvider.cs
- loginstatus.cs
- Stroke2.cs
- WebPartUserCapability.cs
- SqlCacheDependencySection.cs
- PublisherMembershipCondition.cs