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
- EmbossBitmapEffect.cs
- XmlSchemaGroup.cs
- DiagnosticEventProvider.cs
- BitArray.cs
- EndOfStreamException.cs
- PersonalizationEntry.cs
- GeneralTransform3DGroup.cs
- FormViewActionList.cs
- OAVariantLib.cs
- UserControlCodeDomTreeGenerator.cs
- DataGridViewCellStyleEditor.cs
- ProfileManager.cs
- SdlChannelSink.cs
- XhtmlConformanceSection.cs
- CultureNotFoundException.cs
- MatrixConverter.cs
- BrushMappingModeValidation.cs
- KeyMatchBuilder.cs
- PropertyEmitter.cs
- RIPEMD160Managed.cs
- WorkflowInstance.cs
- HttpContext.cs
- XmlILTrace.cs
- VisualStyleInformation.cs
- ChineseLunisolarCalendar.cs
- HelpInfo.cs
- Int64.cs
- ServiceDeploymentInfo.cs
- VisualState.cs
- ReflectEventDescriptor.cs
- RemoteWebConfigurationHostStream.cs
- cache.cs
- WindowsStartMenu.cs
- EndEvent.cs
- ArrayElementGridEntry.cs
- SerializationStore.cs
- DrawingGroup.cs
- ImmutableDispatchRuntime.cs
- OuterGlowBitmapEffect.cs
- MimeBasePart.cs
- ExpressionBuilderContext.cs
- UseAttributeSetsAction.cs
- MediaContextNotificationWindow.cs
- ExtendedTransformFactory.cs
- SiteIdentityPermission.cs
- TickBar.cs
- MatrixTransform3D.cs
- CrossContextChannel.cs
- DataBoundControl.cs
- CapacityStreamGeometryContext.cs
- AsymmetricKeyExchangeDeformatter.cs
- EntityDesignPluralizationHandler.cs
- IOThreadScheduler.cs
- SQLByte.cs
- ClockGroup.cs
- Message.cs
- WhiteSpaceTrimStringConverter.cs
- UpDownEvent.cs
- SessionState.cs
- QueryContinueDragEventArgs.cs
- DSASignatureDeformatter.cs
- BinHexDecoder.cs
- ActivityTypeResolver.xaml.cs
- LinkButton.cs
- XmlQualifiedName.cs
- ReaderWriterLockWrapper.cs
- ProvidePropertyAttribute.cs
- PackagingUtilities.cs
- XsltLoader.cs
- DodSequenceMerge.cs
- RangeValuePattern.cs
- MatrixTransform.cs
- ProviderMetadataCachedInformation.cs
- PartialClassGenerationTask.cs
- DataExpression.cs
- FileLogRecordEnumerator.cs
- OutOfProcStateClientManager.cs
- SchemaObjectWriter.cs
- DataBoundControl.cs
- documentation.cs
- SiteMembershipCondition.cs
- Style.cs
- ParameterToken.cs
- MeasureItemEvent.cs
- SqlBulkCopyColumnMapping.cs
- XmlAtomicValue.cs
- FieldToken.cs
- Parameter.cs
- TabControlDesigner.cs
- SHA1.cs
- ToolBarTray.cs
- LayoutExceptionEventArgs.cs
- PrePrepareMethodAttribute.cs
- XmlRootAttribute.cs
- ReadOnlyActivityGlyph.cs
- _OSSOCK.cs
- HatchBrush.cs
- SRGSCompiler.cs
- DateTime.cs
- AtomServiceDocumentSerializer.cs