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
- FontFamily.cs
- UpdateDelegates.Generated.cs
- CorePropertiesFilter.cs
- DebugHandleTracker.cs
- Confirm.cs
- CalendarModeChangedEventArgs.cs
- DecimalAnimation.cs
- SortExpressionBuilder.cs
- XmlFormatWriterGenerator.cs
- MetadataArtifactLoaderResource.cs
- InheritanceRules.cs
- BatchParser.cs
- ThreadExceptionDialog.cs
- ResourcePermissionBaseEntry.cs
- ClassImporter.cs
- MasterPage.cs
- WindowsStreamSecurityUpgradeProvider.cs
- Animatable.cs
- ToolBarButtonClickEvent.cs
- Font.cs
- Propagator.cs
- TimeIntervalCollection.cs
- CodeIndexerExpression.cs
- TdsEnums.cs
- CodePropertyReferenceExpression.cs
- Crypto.cs
- EndpointDiscoveryBehavior.cs
- Site.cs
- HebrewNumber.cs
- FillRuleValidation.cs
- EdmValidator.cs
- NamespaceList.cs
- Slider.cs
- QuerySettings.cs
- BooleanKeyFrameCollection.cs
- ModelItemCollectionImpl.cs
- ButtonColumn.cs
- SHA384.cs
- HttpStreamFormatter.cs
- ByteAnimationUsingKeyFrames.cs
- SqlCacheDependencyDatabase.cs
- TrustLevel.cs
- HuffmanTree.cs
- ChildTable.cs
- RoutedEvent.cs
- TimeSpan.cs
- TcpClientChannel.cs
- DecoderBestFitFallback.cs
- InputScopeNameConverter.cs
- TiffBitmapDecoder.cs
- TemplatePropertyEntry.cs
- XmlName.cs
- ContentType.cs
- sqlnorm.cs
- LineUtil.cs
- EncoderReplacementFallback.cs
- RsaKeyGen.cs
- EdmScalarPropertyAttribute.cs
- StackSpiller.Generated.cs
- SqlLiftWhereClauses.cs
- ToolBarButtonClickEvent.cs
- GenericTextProperties.cs
- X509CertificateStore.cs
- Pts.cs
- JsonDataContract.cs
- TransformGroup.cs
- BordersPage.cs
- DataGridViewCellFormattingEventArgs.cs
- Panel.cs
- OutgoingWebResponseContext.cs
- SQLBoolean.cs
- StrokeIntersection.cs
- RawStylusSystemGestureInputReport.cs
- ImageKeyConverter.cs
- ToolStripRenderEventArgs.cs
- FontFamily.cs
- ObjectListDesigner.cs
- EqualityComparer.cs
- SingleSelectRootGridEntry.cs
- JapaneseCalendar.cs
- CopyAttributesAction.cs
- Geometry3D.cs
- Errors.cs
- PrintControllerWithStatusDialog.cs
- ResourceSet.cs
- GridViewRowPresenterBase.cs
- CultureTable.cs
- GridViewRowEventArgs.cs
- HttpHeaderCollection.cs
- SupportsPreviewControlAttribute.cs
- ActivityBuilderXamlWriter.cs
- CompilationUnit.cs
- PingOptions.cs
- TextCharacters.cs
- ItemMap.cs
- ScrollProviderWrapper.cs
- FontNameConverter.cs
- CodeGenerator.cs
- ButtonField.cs
- WebPartConnectionsEventArgs.cs