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
- TemplateControlParser.cs
- ThreadStateException.cs
- XmlAnyAttributeAttribute.cs
- Documentation.cs
- FigureParagraph.cs
- lengthconverter.cs
- ErrorLog.cs
- ContextMenuStripActionList.cs
- ReferenceEqualityComparer.cs
- Rect.cs
- APCustomTypeDescriptor.cs
- TableRowCollection.cs
- MatrixAnimationBase.cs
- ThreadWorkerController.cs
- Util.cs
- XmlSchemaAnyAttribute.cs
- OleDbException.cs
- ListSortDescriptionCollection.cs
- FileFormatException.cs
- XPathConvert.cs
- StrokeNodeOperations.cs
- HyperLink.cs
- IPPacketInformation.cs
- MethodAccessException.cs
- HttpListenerPrefixCollection.cs
- BitmapPalettes.cs
- MaskInputRejectedEventArgs.cs
- SqlMethods.cs
- ColumnMap.cs
- TreeViewDesigner.cs
- BorderGapMaskConverter.cs
- EntityTypeEmitter.cs
- LogPolicy.cs
- _ListenerRequestStream.cs
- InfoCardPolicy.cs
- FolderNameEditor.cs
- TabPage.cs
- ThumbAutomationPeer.cs
- SqlParameter.cs
- ConfigurationSettings.cs
- ReferencedType.cs
- XmlFormatWriterGenerator.cs
- StringAnimationBase.cs
- RadioButton.cs
- TextBoxAutomationPeer.cs
- WebCategoryAttribute.cs
- WindowsListViewItemCheckBox.cs
- HtmlShimManager.cs
- LambdaCompiler.Unary.cs
- Compiler.cs
- CheckBoxBaseAdapter.cs
- DelayedRegex.cs
- RegexTree.cs
- WebHttpBindingElement.cs
- XmlSchemaType.cs
- XamlPoint3DCollectionSerializer.cs
- ChtmlImageAdapter.cs
- SignatureResourcePool.cs
- WmlLinkAdapter.cs
- ReferencedType.cs
- WebPartConnectionsCancelVerb.cs
- CommandEventArgs.cs
- ManifestResourceInfo.cs
- XpsInterleavingPolicy.cs
- TextServicesPropertyRanges.cs
- SEHException.cs
- X509Utils.cs
- ViewDesigner.cs
- ScrollChrome.cs
- ConstantProjectedSlot.cs
- EdmTypeAttribute.cs
- _SSPIWrapper.cs
- PointKeyFrameCollection.cs
- HelpKeywordAttribute.cs
- RawStylusInputReport.cs
- UIPermission.cs
- WindowVisualStateTracker.cs
- DataSourceControlBuilder.cs
- CryptoApi.cs
- cookie.cs
- QualifiedCellIdBoolean.cs
- NavigationFailedEventArgs.cs
- SafeProcessHandle.cs
- SqlTypesSchemaImporter.cs
- ExecutionContext.cs
- Msec.cs
- BufferBuilder.cs
- ClientClassGenerator.cs
- SafeProcessHandle.cs
- CustomError.cs
- XmlSchemaCompilationSettings.cs
- SeekableReadStream.cs
- InlinedAggregationOperatorEnumerator.cs
- Peer.cs
- TabControlAutomationPeer.cs
- Win32Native.cs
- HitTestParameters.cs
- XmlBinaryReader.cs
- ErrorEventArgs.cs
- SendKeys.cs