Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- FormatSettings.cs
- linebase.cs
- UseLicense.cs
- WrappedDispatcherException.cs
- TextRunCache.cs
- TypeSemantics.cs
- VirtualDirectoryMappingCollection.cs
- SettingsPropertyNotFoundException.cs
- Hashtable.cs
- DataGridViewCellStateChangedEventArgs.cs
- FaultHandlingFilter.cs
- TextRangeEditTables.cs
- UTF8Encoding.cs
- CultureInfo.cs
- EntityTemplateUserControl.cs
- TraceHwndHost.cs
- MultilineStringConverter.cs
- PeerSecurityManager.cs
- TextRunCacheImp.cs
- DeploymentExceptionMapper.cs
- NetDispatcherFaultException.cs
- ThrowHelper.cs
- EncryptedReference.cs
- FileChangesMonitor.cs
- ValidatorAttribute.cs
- HttpModulesInstallComponent.cs
- StringExpressionSet.cs
- DataGridViewTextBoxColumn.cs
- HttpCookieCollection.cs
- MultipartIdentifier.cs
- TraceSource.cs
- ConsumerConnectionPointCollection.cs
- RuleProcessor.cs
- XmlSchemaInclude.cs
- InvalidPipelineStoreException.cs
- PointLightBase.cs
- OleDbFactory.cs
- AuthenticationSection.cs
- DBCommandBuilder.cs
- GifBitmapEncoder.cs
- InternalResources.cs
- ScrollItemPattern.cs
- smtppermission.cs
- IFormattable.cs
- WebZone.cs
- CssClassPropertyAttribute.cs
- CFStream.cs
- IntersectQueryOperator.cs
- DataGridViewColumnStateChangedEventArgs.cs
- ICollection.cs
- future.cs
- EventRoute.cs
- ProfileModule.cs
- ProxyHwnd.cs
- BamlWriter.cs
- DataViewListener.cs
- EventToken.cs
- Timer.cs
- XPathAxisIterator.cs
- HttpHandlersSection.cs
- AnnotationDocumentPaginator.cs
- AppDomainUnloadedException.cs
- IndentedWriter.cs
- ImageKeyConverter.cs
- NotifyCollectionChangedEventArgs.cs
- OleStrCAMarshaler.cs
- UserNameSecurityToken.cs
- ProviderUtil.cs
- DataGridPageChangedEventArgs.cs
- BlurEffect.cs
- VisualStyleInformation.cs
- DiagnosticsConfigurationHandler.cs
- ScrollItemPatternIdentifiers.cs
- WindowsRebar.cs
- TypeElement.cs
- WebPartConnectionsConfigureVerb.cs
- EventEntry.cs
- FixedSOMTable.cs
- EventlogProvider.cs
- contentDescriptor.cs
- SortExpressionBuilder.cs
- MeasureItemEvent.cs
- DetailsView.cs
- TemplateBindingExtensionConverter.cs
- DataRowView.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- RowToFieldTransformer.cs
- BufferAllocator.cs
- QueryInterceptorAttribute.cs
- mediaeventargs.cs
- PageBreakRecord.cs
- NaturalLanguageHyphenator.cs
- EntityException.cs
- Console.cs
- CursorConverter.cs
- DateTimeStorage.cs
- TraceSwitch.cs
- HtmlControlPersistable.cs
- DbMetaDataCollectionNames.cs
- ReferenceConverter.cs