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
- FontConverter.cs
- ConsoleCancelEventArgs.cs
- XmlILIndex.cs
- RSAPKCS1SignatureDeformatter.cs
- RoutedEvent.cs
- ControlCachePolicy.cs
- MenuAdapter.cs
- XmlSchemaCollection.cs
- BindableTemplateBuilder.cs
- TraceSection.cs
- WebHttpBindingCollectionElement.cs
- CodeAttributeArgument.cs
- SqlDataReader.cs
- xmlglyphRunInfo.cs
- DataTableTypeConverter.cs
- XmlObjectSerializerReadContextComplex.cs
- EdmToObjectNamespaceMap.cs
- ZipIOFileItemStream.cs
- CheckBoxRenderer.cs
- DataGridViewCellEventArgs.cs
- AssemblyCollection.cs
- MatrixAnimationUsingPath.cs
- returneventsaver.cs
- ContentControl.cs
- Rotation3DAnimation.cs
- ControlBuilderAttribute.cs
- CodeAttachEventStatement.cs
- PrintController.cs
- ComponentDispatcher.cs
- ServiceHostingEnvironment.cs
- CacheSection.cs
- ExpressionHelper.cs
- ProcessDesigner.cs
- TextDecorations.cs
- CmsInterop.cs
- NullableDecimalSumAggregationOperator.cs
- HideDisabledControlAdapter.cs
- _PooledStream.cs
- PieceDirectory.cs
- ComNativeDescriptor.cs
- TextServicesContext.cs
- HitTestWithPointDrawingContextWalker.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- ConnectionStringSettingsCollection.cs
- EqualityComparer.cs
- SoapProtocolImporter.cs
- AppDomainAttributes.cs
- HybridObjectCache.cs
- SmtpFailedRecipientsException.cs
- ButtonRenderer.cs
- Page.cs
- SoapCodeExporter.cs
- FragmentQueryKB.cs
- MorphHelper.cs
- RightsManagementLicense.cs
- Vector.cs
- Lease.cs
- TreeViewEvent.cs
- XPathParser.cs
- DurableInstanceProvider.cs
- EncoderBestFitFallback.cs
- ScrollBar.cs
- ApplicationManager.cs
- ComboBoxDesigner.cs
- EntityClassGenerator.cs
- RegexWriter.cs
- ByteRangeDownloader.cs
- XmlTextReaderImpl.cs
- VScrollProperties.cs
- Transform.cs
- Queue.cs
- StorageMappingFragment.cs
- TextEndOfLine.cs
- CodeGotoStatement.cs
- AddInAttribute.cs
- PasswordPropertyTextAttribute.cs
- Nullable.cs
- HtmlLinkAdapter.cs
- FormsAuthenticationCredentials.cs
- TerminateDesigner.cs
- CodeGen.cs
- ProgressBar.cs
- ObjectListCommandEventArgs.cs
- DependencyPropertyConverter.cs
- ChangeNode.cs
- OracleNumber.cs
- TreeView.cs
- PropertyEntry.cs
- ClassGenerator.cs
- WebDisplayNameAttribute.cs
- ImageField.cs
- KeyValuePairs.cs
- ModelFunction.cs
- InvalidEnumArgumentException.cs
- SingleAnimation.cs
- ContentIterators.cs
- TypeDelegator.cs
- DataGridTextBoxColumn.cs
- ValidationError.cs
- CheckBoxFlatAdapter.cs