Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SoapExtensionImporter.cs
- WebPartManagerDesigner.cs
- CodeRegionDirective.cs
- KeyNotFoundException.cs
- CalendarModeChangedEventArgs.cs
- TraceUtility.cs
- BamlBinaryWriter.cs
- HandlerBase.cs
- DateTimeEditor.cs
- OverflowException.cs
- DescendantOverDescendantQuery.cs
- XmlCharacterData.cs
- QueryOptionExpression.cs
- EventHandlingScope.cs
- DependentList.cs
- MultipleCopiesCollection.cs
- XPathChildIterator.cs
- MimeTypeMapper.cs
- PointConverter.cs
- ByteKeyFrameCollection.cs
- Validator.cs
- ClientSponsor.cs
- TaskSchedulerException.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- ExecutionContext.cs
- TemplateControlCodeDomTreeGenerator.cs
- DataBoundLiteralControl.cs
- XmlSchemaComplexContent.cs
- MemberPathMap.cs
- PointLightBase.cs
- InternalDuplexChannelFactory.cs
- NameObjectCollectionBase.cs
- OdbcConnectionString.cs
- Geometry3D.cs
- TypeRefElement.cs
- SchemaElementDecl.cs
- PageContentCollection.cs
- DrawingContextDrawingContextWalker.cs
- RootNamespaceAttribute.cs
- X509RecipientCertificateClientElement.cs
- SignatureHelper.cs
- OrderedDictionary.cs
- SmtpClient.cs
- IApplicationTrustManager.cs
- Win32Exception.cs
- ToolBarButton.cs
- KeyInterop.cs
- ListViewInsertionMark.cs
- OperatingSystem.cs
- ProfilePropertyNameValidator.cs
- DeviceContext.cs
- ButtonFieldBase.cs
- PropertyMetadata.cs
- StyleSheet.cs
- CodeThrowExceptionStatement.cs
- AxisAngleRotation3D.cs
- ExponentialEase.cs
- RijndaelManagedTransform.cs
- ISessionStateStore.cs
- TextRange.cs
- Stylesheet.cs
- BaseCodePageEncoding.cs
- CompilerGlobalScopeAttribute.cs
- NumericUpDownAccelerationCollection.cs
- MarkupWriter.cs
- RegularExpressionValidator.cs
- URLString.cs
- PasswordTextContainer.cs
- DBSchemaRow.cs
- GlyphRunDrawing.cs
- SiteMapHierarchicalDataSourceView.cs
- NavigationProperty.cs
- SectionVisual.cs
- ErrorTableItemStyle.cs
- SqlXml.cs
- HttpMethodAttribute.cs
- GetPageNumberCompletedEventArgs.cs
- DataGridViewComboBoxColumn.cs
- ControlIdConverter.cs
- xmlglyphRunInfo.cs
- UseLicense.cs
- ThreadExceptionDialog.cs
- RuntimeUtils.cs
- Pair.cs
- ReadOnlyObservableCollection.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- TextEmbeddedObject.cs
- SoapEnvelopeProcessingElement.cs
- ClientScriptItemCollection.cs
- AssociationEndMember.cs
- ObjectView.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- MarginCollapsingState.cs
- SiteMapHierarchicalDataSourceView.cs
- ComponentCodeDomSerializer.cs
- CustomPopupPlacement.cs
- TypeSystem.cs
- ChtmlTextWriter.cs
- AssemblySettingAttributes.cs
- TcpSocketManager.cs