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
- brushes.cs
- DataGridViewSortCompareEventArgs.cs
- shaper.cs
- ValueTypeFixupInfo.cs
- CmsInterop.cs
- BuildResultCache.cs
- NavigationEventArgs.cs
- OneOfTypeConst.cs
- EncodingNLS.cs
- Path.cs
- SubclassTypeValidator.cs
- IsolatedStorage.cs
- TypeConverter.cs
- ASCIIEncoding.cs
- XmlEncoding.cs
- SourceFileBuildProvider.cs
- Keywords.cs
- Color.cs
- TableRowGroup.cs
- Transform.cs
- KnownTypesHelper.cs
- WindowsAltTab.cs
- ElementsClipboardData.cs
- DataStreams.cs
- BookmarkScopeHandle.cs
- XmlDataProvider.cs
- LambdaSerializationException.cs
- StrongNameMembershipCondition.cs
- SignedInfo.cs
- AlternateView.cs
- ExternalCalls.cs
- VirtualizingPanel.cs
- DragDrop.cs
- TableLayoutCellPaintEventArgs.cs
- PseudoWebRequest.cs
- ItemPager.cs
- Binding.cs
- DescendentsWalkerBase.cs
- WebMethodAttribute.cs
- PolyBezierSegment.cs
- WCFBuildProvider.cs
- DetailsViewUpdatedEventArgs.cs
- RootAction.cs
- Win32KeyboardDevice.cs
- MatrixStack.cs
- NodeFunctions.cs
- SecuritySessionServerSettings.cs
- Geometry.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- ToolStripCodeDomSerializer.cs
- SizeIndependentAnimationStorage.cs
- ThemeDictionaryExtension.cs
- ConcurrencyBehavior.cs
- CodeRemoveEventStatement.cs
- HelpProvider.cs
- MsmqDiagnostics.cs
- OletxVolatileEnlistment.cs
- Pool.cs
- XsltArgumentList.cs
- TypeDependencyAttribute.cs
- SqlEnums.cs
- MULTI_QI.cs
- IDQuery.cs
- XmlQualifiedName.cs
- XmlAnyElementAttributes.cs
- EventLogger.cs
- XmlToDatasetMap.cs
- TableItemStyle.cs
- MetadataUtilsSmi.cs
- CodeMethodInvokeExpression.cs
- SeverityFilter.cs
- BufferedStream.cs
- DateTime.cs
- ConnectionOrientedTransportElement.cs
- SortedList.cs
- CompareInfo.cs
- ProfileService.cs
- ReachObjectContext.cs
- FixedElement.cs
- ProgressBarRenderer.cs
- KeyValueSerializer.cs
- panel.cs
- SqlColumnizer.cs
- MetadataPropertyCollection.cs
- QueryStringParameter.cs
- ConfigurationValidatorAttribute.cs
- PreloadedPackages.cs
- IndentTextWriter.cs
- RoleGroupCollection.cs
- Error.cs
- infer.cs
- WebPartTracker.cs
- ConversionValidationRule.cs
- RequestBringIntoViewEventArgs.cs
- UnitySerializationHolder.cs
- MemoryStream.cs
- SqlCacheDependency.cs
- SubpageParagraph.cs
- CriticalFinalizerObject.cs
- UserControlBuildProvider.cs