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
- SliderAutomationPeer.cs
- ReferenceSchema.cs
- OnOperation.cs
- ConfigurationLoaderException.cs
- URL.cs
- WebPartDeleteVerb.cs
- MailBnfHelper.cs
- SQLDateTimeStorage.cs
- PagePropertiesChangingEventArgs.cs
- DataPagerField.cs
- PointIndependentAnimationStorage.cs
- LoginNameDesigner.cs
- GCHandleCookieTable.cs
- TimeEnumHelper.cs
- BuildProvider.cs
- SimpleWorkerRequest.cs
- ValidatedControlConverter.cs
- IntegerValidator.cs
- GroupBox.cs
- UndoEngine.cs
- EnumCodeDomSerializer.cs
- RemoteWebConfigurationHostServer.cs
- MouseEvent.cs
- ToolboxItemAttribute.cs
- NullableDoubleSumAggregationOperator.cs
- Model3D.cs
- NullableDoubleAverageAggregationOperator.cs
- KeysConverter.cs
- TableCellCollection.cs
- TemplateColumn.cs
- WebException.cs
- ProcessModuleCollection.cs
- DataGridHeaderBorder.cs
- SimpleMailWebEventProvider.cs
- FactoryId.cs
- ThrowHelper.cs
- ResourceAssociationTypeEnd.cs
- PlanCompiler.cs
- UnsafeNativeMethods.cs
- Socket.cs
- VirtualizedCellInfoCollection.cs
- EnumMemberAttribute.cs
- BitSet.cs
- AttachedPropertyDescriptor.cs
- DataGridViewCellPaintingEventArgs.cs
- PenContext.cs
- CompilerInfo.cs
- DetailsViewPagerRow.cs
- CodeValidator.cs
- OfTypeExpression.cs
- NotifyInputEventArgs.cs
- TargetControlTypeAttribute.cs
- Header.cs
- ManualResetEvent.cs
- TimeZone.cs
- SqlNamer.cs
- Vector3DKeyFrameCollection.cs
- Token.cs
- BitVector32.cs
- TableParaClient.cs
- FileSystemInfo.cs
- Size.cs
- AdjustableArrowCap.cs
- ClientOperation.cs
- AlphabeticalEnumConverter.cs
- MobileControlPersister.cs
- DialogWindow.cs
- _KerberosClient.cs
- TitleStyle.cs
- JournalEntryStack.cs
- XDRSchema.cs
- LoadedOrUnloadedOperation.cs
- PresentationTraceSources.cs
- OAVariantLib.cs
- PropertyIDSet.cs
- Condition.cs
- TextRangeEditLists.cs
- KeyValuePairs.cs
- XmlSchemaGroup.cs
- PointLightBase.cs
- DebugInfoExpression.cs
- RuntimeArgumentHandle.cs
- RegisteredArrayDeclaration.cs
- HtmlButton.cs
- ImageMap.cs
- LZCodec.cs
- CodeThrowExceptionStatement.cs
- CompilationLock.cs
- DesignerHelpers.cs
- HelpEvent.cs
- DataObjectPastingEventArgs.cs
- JsonReaderWriterFactory.cs
- ProcessHostConfigUtils.cs
- TcpChannelListener.cs
- SpellerHighlightLayer.cs
- GridViewRowPresenterBase.cs
- ToolStripLabel.cs
- DataGridComponentEditor.cs
- WebPartDescription.cs
- TypeDependencyAttribute.cs