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
- PreviewPageInfo.cs
- DesignerVerbCollection.cs
- DataGridTableCollection.cs
- CmsInterop.cs
- SqlProviderManifest.cs
- IDispatchConstantAttribute.cs
- BindingObserver.cs
- VBIdentifierTrimConverter.cs
- BezierSegment.cs
- DesignerAttributeInfo.cs
- DataGridViewImageColumn.cs
- IdnMapping.cs
- Baml2006ReaderFrame.cs
- VectorCollectionConverter.cs
- XmlElementAttributes.cs
- ActiveXMessageFormatter.cs
- DropSource.cs
- SqlBooleanizer.cs
- XmlChildNodes.cs
- OleDbCommand.cs
- Cursors.cs
- BreakSafeBase.cs
- SafeCoTaskMem.cs
- connectionpool.cs
- StructuralCache.cs
- OdbcConnectionOpen.cs
- MethodBuilderInstantiation.cs
- PrinterResolution.cs
- StylusSystemGestureEventArgs.cs
- ListViewContainer.cs
- NetworkInformationException.cs
- SqlCrossApplyToCrossJoin.cs
- QueryExpr.cs
- BitmapEncoder.cs
- Internal.cs
- FrugalList.cs
- TransformerInfoCollection.cs
- ItemCollection.cs
- ProfileSettingsCollection.cs
- ButtonFlatAdapter.cs
- GridViewColumnHeader.cs
- ActivityTypeCodeDomSerializer.cs
- Compensate.cs
- CodeAttributeArgumentCollection.cs
- SchemaTableColumn.cs
- ExtentCqlBlock.cs
- TextBoxBase.cs
- cookiecontainer.cs
- SafeNativeMethods.cs
- ChtmlMobileTextWriter.cs
- QueryPageSettingsEventArgs.cs
- ConditionCollection.cs
- SpotLight.cs
- DirectionalLight.cs
- DesignerAutoFormatStyle.cs
- PriorityQueue.cs
- OrderedDictionary.cs
- XPathNavigator.cs
- FunctionCommandText.cs
- TemplateBindingExpression.cs
- DemultiplexingDispatchMessageFormatter.cs
- CodeTypeReferenceExpression.cs
- CAGDesigner.cs
- XmlUtil.cs
- SecurityRuntime.cs
- OutputCacheSettings.cs
- ObjectParameter.cs
- MtomMessageEncodingElement.cs
- SpeechEvent.cs
- Panel.cs
- IisTraceListener.cs
- PathFigure.cs
- RuntimeComponentFilter.cs
- _LazyAsyncResult.cs
- Scene3D.cs
- ListDictionary.cs
- Stackframe.cs
- PageThemeCodeDomTreeGenerator.cs
- DataProtectionSecurityStateEncoder.cs
- XamlFigureLengthSerializer.cs
- HealthMonitoringSectionHelper.cs
- WebBrowserSiteBase.cs
- HandlerFactoryCache.cs
- GB18030Encoding.cs
- DataListItemCollection.cs
- MimeMultiPart.cs
- SoapSchemaImporter.cs
- ObjectDataSourceSelectingEventArgs.cs
- DSASignatureDeformatter.cs
- StylusDownEventArgs.cs
- NativeMethods.cs
- StyleConverter.cs
- OptimalBreakSession.cs
- ItemChangedEventArgs.cs
- SettingsContext.cs
- CustomAttributeBuilder.cs
- StoreContentChangedEventArgs.cs
- DesignerAttribute.cs
- Container.cs
- MetricEntry.cs