Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / 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. /****************************************************************************\ * * 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
- DataService.cs
- DateTimeValueSerializerContext.cs
- ModelItemCollection.cs
- EventMappingSettings.cs
- XsdBuilder.cs
- TextDecorationCollectionConverter.cs
- EventHandlersStore.cs
- WebContentFormatHelper.cs
- XPathEmptyIterator.cs
- querybuilder.cs
- DesignerVerbCollection.cs
- FocusManager.cs
- StrongName.cs
- InkCanvasInnerCanvas.cs
- CommandID.cs
- ReturnType.cs
- BitmapSource.cs
- Converter.cs
- GeneralTransform3DGroup.cs
- PropertyMetadata.cs
- GcSettings.cs
- TableRowGroup.cs
- ToolStripSystemRenderer.cs
- RootBrowserWindowProxy.cs
- RIPEMD160.cs
- CommonDialog.cs
- XappLauncher.cs
- ManagementQuery.cs
- CommandLibraryHelper.cs
- XPathSelectionIterator.cs
- WebBrowserPermission.cs
- DataGridViewCellParsingEventArgs.cs
- VScrollProperties.cs
- ZipQueryOperator.cs
- StringComparer.cs
- QueryResponse.cs
- XmlSchemaCollection.cs
- ErrorTableItemStyle.cs
- RegionIterator.cs
- DataGridViewComponentPropertyGridSite.cs
- ParseNumbers.cs
- LinqDataSourceInsertEventArgs.cs
- WebBrowsableAttribute.cs
- DataSetUtil.cs
- LinearQuaternionKeyFrame.cs
- FontCacheUtil.cs
- WizardPanel.cs
- Bits.cs
- VersionValidator.cs
- ConfigurationElementProperty.cs
- PresentationSource.cs
- FlowDocument.cs
- XmlSchemaValidationException.cs
- SafeEventLogWriteHandle.cs
- DecoderBestFitFallback.cs
- UniqueCodeIdentifierScope.cs
- RootBrowserWindow.cs
- XmlILIndex.cs
- PathSegment.cs
- DateTimeValueSerializerContext.cs
- CancellationTokenSource.cs
- SqlDataSourceView.cs
- Substitution.cs
- ParseNumbers.cs
- InkPresenter.cs
- UrlPath.cs
- ExtensionSimplifierMarkupObject.cs
- XmlArrayItemAttribute.cs
- WebFormDesignerActionService.cs
- ExpressionBinding.cs
- PathData.cs
- WmlPageAdapter.cs
- Stream.cs
- EntityCommandCompilationException.cs
- LineSegment.cs
- OptimalTextSource.cs
- HttpContext.cs
- IPEndPoint.cs
- DesignOnlyAttribute.cs
- OperatorExpressions.cs
- UniqueConstraint.cs
- TCEAdapterGenerator.cs
- XmlIterators.cs
- DataGridParentRows.cs
- StrongTypingException.cs
- ControlCodeDomSerializer.cs
- XmlTextAttribute.cs
- Input.cs
- ComPlusContractBehavior.cs
- TableColumn.cs
- StreamInfo.cs
- ComponentResourceManager.cs
- PageEventArgs.cs
- GcSettings.cs
- IndexedEnumerable.cs
- NotifyInputEventArgs.cs
- TextOutput.cs
- ContainerVisual.cs
- GenericWebPart.cs
- ProtectedConfigurationSection.cs