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
- MouseActionValueSerializer.cs
- GeometryDrawing.cs
- EndpointReference.cs
- WindowsEditBox.cs
- MultipleViewPattern.cs
- EventSourceCreationData.cs
- SeverityFilter.cs
- EntityDataSourceUtil.cs
- ProjectionPlan.cs
- smtpconnection.cs
- AnnotationAdorner.cs
- XmlArrayAttribute.cs
- SurrogateSelector.cs
- Enum.cs
- BatchWriter.cs
- WebPartManagerInternals.cs
- DataGridCell.cs
- SQLDateTimeStorage.cs
- IODescriptionAttribute.cs
- InstanceBehavior.cs
- Instrumentation.cs
- SystemEvents.cs
- RowToParametersTransformer.cs
- ClrPerspective.cs
- OperatorExpressions.cs
- BaseTemplatedMobileComponentEditor.cs
- XmlWriterTraceListener.cs
- OpenTypeLayout.cs
- ExpandCollapsePattern.cs
- NavigationPropertySingletonExpression.cs
- ScalarConstant.cs
- MetadataPropertyAttribute.cs
- GeneralTransform.cs
- PropertyConverter.cs
- Activity.cs
- EventDriven.cs
- CacheSection.cs
- BitmapFrameEncode.cs
- FormViewInsertEventArgs.cs
- QuotedPairReader.cs
- HttpProfileGroupBase.cs
- Repeater.cs
- TypeResolver.cs
- TextServicesLoader.cs
- dataprotectionpermission.cs
- RenderData.cs
- ContextQuery.cs
- LineBreak.cs
- ColumnMapVisitor.cs
- Type.cs
- PinnedBufferMemoryStream.cs
- FtpRequestCacheValidator.cs
- BitConverter.cs
- AttributeProviderAttribute.cs
- JournalNavigationScope.cs
- SecurityTokenException.cs
- KeyboardNavigation.cs
- ButtonFieldBase.cs
- EdmFunction.cs
- QualifiedCellIdBoolean.cs
- MethodRental.cs
- DnsPermission.cs
- oledbmetadatacolumnnames.cs
- SingleBodyParameterMessageFormatter.cs
- WebPartZoneBase.cs
- DrawingDrawingContext.cs
- StrongNameUtility.cs
- NumberSubstitution.cs
- DataGridViewIntLinkedList.cs
- SqlGatherConsumedAliases.cs
- DoubleAnimationUsingPath.cs
- NameValueSectionHandler.cs
- WorkItem.cs
- RangeValuePattern.cs
- OdbcException.cs
- Converter.cs
- FixedSOMLineCollection.cs
- QualificationDataAttribute.cs
- WebBrowserEvent.cs
- X509UI.cs
- ContentPlaceHolder.cs
- FatalException.cs
- TreeSet.cs
- ProfileEventArgs.cs
- AsyncStreamReader.cs
- KeyConverter.cs
- NativeMethods.cs
- ZipIORawDataFileBlock.cs
- WindowsUpDown.cs
- LexicalChunk.cs
- ListItem.cs
- ValidationErrorEventArgs.cs
- ComboBox.cs
- ApplicationCommands.cs
- ColumnClickEvent.cs
- InlineCollection.cs
- Rect3D.cs
- DbInsertCommandTree.cs
- DecoderBestFitFallback.cs
- SmtpException.cs