Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / securitycriticaldataformultiplegetandset.cs / 1305600 / securitycriticaldataformultiplegetandset.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: // This is a helper class to facilate the storage of data that's Critical for set and get. // This file is used as a cannister to hold values for Dynamic properties that are // not safe to expose and are built to be used only privately. // The other caveat is that these dynamic properties should not be needed in the // animation or databinding scenarios example: PresenationSource // // History: // 04/29/05 : akaza Created. // //--------------------------------------------------------------------------- using System ; using System.Security ; using MS.Internal.PresentationCore; namespace MS.Internal { [FriendAccessAllowed] // Built into Core, also used by Framework. internal class SecurityCriticalDataForMultipleGetAndSet{ /// /// Critical - "by definition" - this class is intended only for data that's /// Critical for setting. /// [SecurityCritical] internal SecurityCriticalDataForMultipleGetAndSet(T value) { _value = value; } ////// Critical - Setter is Critical "by definition" - this class is intended only /// for data that's Critical for setting. /// internal T Value { [SecurityCritical] get { return _value; } [SecurityCritical] set { _value = value; } } ////// Critical - by definition as this data is Critical for set. /// > [SecurityCritical] private T _value; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: // This is a helper class to facilate the storage of data that's Critical for set and get. // This file is used as a cannister to hold values for Dynamic properties that are // not safe to expose and are built to be used only privately. // The other caveat is that these dynamic properties should not be needed in the // animation or databinding scenarios example: PresenationSource // // History: // 04/29/05 : akaza Created. // //--------------------------------------------------------------------------- using System ; using System.Security ; using MS.Internal.PresentationCore; namespace MS.Internal { [FriendAccessAllowed] // Built into Core, also used by Framework. internal class SecurityCriticalDataForMultipleGetAndSet{ /// /// Critical - "by definition" - this class is intended only for data that's /// Critical for setting. /// [SecurityCritical] internal SecurityCriticalDataForMultipleGetAndSet(T value) { _value = value; } ////// Critical - Setter is Critical "by definition" - this class is intended only /// for data that's Critical for setting. /// internal T Value { [SecurityCritical] get { return _value; } [SecurityCritical] set { _value = value; } } ////// Critical - by definition as this data is Critical for set. /// > [SecurityCritical] private T _value; } } // 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
- BindingValueChangedEventArgs.cs
- XPathNodeHelper.cs
- WebConfigManager.cs
- TemplateKey.cs
- SiteMapProvider.cs
- PageSettings.cs
- PropertyEmitter.cs
- FixedDSBuilder.cs
- XmlCodeExporter.cs
- HttpStreamFormatter.cs
- VirtualizedItemProviderWrapper.cs
- WebPartZoneBase.cs
- UInt16Converter.cs
- TimerElapsedEvenArgs.cs
- DtdParser.cs
- SignatureSummaryDialog.cs
- ModulesEntry.cs
- WasAdminWrapper.cs
- SqlCharStream.cs
- MissingMemberException.cs
- TrustSection.cs
- TextCompositionEventArgs.cs
- DropShadowEffect.cs
- VectorCollectionValueSerializer.cs
- ProfileBuildProvider.cs
- CompositeTypefaceMetrics.cs
- Random.cs
- OutArgumentConverter.cs
- TableCellCollection.cs
- ThreadExceptionDialog.cs
- recordstatefactory.cs
- ContractUtils.cs
- ListViewSelectEventArgs.cs
- SharedPersonalizationStateInfo.cs
- PersonalizableTypeEntry.cs
- StylusPlugin.cs
- Merger.cs
- XmlSchemaObjectCollection.cs
- DesignerHost.cs
- ControlTemplate.cs
- WeakEventManager.cs
- ValueQuery.cs
- AppDomainUnloadedException.cs
- CodeDomComponentSerializationService.cs
- DaylightTime.cs
- PopupEventArgs.cs
- TreeViewImageIndexConverter.cs
- FunctionQuery.cs
- DecodeHelper.cs
- ThreadNeutralSemaphore.cs
- MaskInputRejectedEventArgs.cs
- RegexRunner.cs
- PointAnimationUsingPath.cs
- Utils.cs
- QueryParameter.cs
- httpserverutility.cs
- TypeElement.cs
- MethodCallTranslator.cs
- Vars.cs
- SHA384Managed.cs
- SqlTriggerContext.cs
- CodeAttributeDeclaration.cs
- TransformCollection.cs
- SliderAutomationPeer.cs
- ImageKeyConverter.cs
- OleDbMetaDataFactory.cs
- ClientSettingsSection.cs
- ColumnMapVisitor.cs
- DataObjectFieldAttribute.cs
- HybridDictionary.cs
- ExceptionRoutedEventArgs.cs
- TrustManager.cs
- DataControlButton.cs
- TypeConverterValueSerializer.cs
- ContentType.cs
- ObjectStateEntryDbDataRecord.cs
- TextViewSelectionProcessor.cs
- RegistrySecurity.cs
- AnchorEditor.cs
- ListViewItem.cs
- DataKey.cs
- DynamicRenderer.cs
- FixedLineResult.cs
- RootBuilder.cs
- Int32Converter.cs
- FileVersion.cs
- CustomPopupPlacement.cs
- XmlSchemaGroupRef.cs
- PrivateFontCollection.cs
- GenericTextProperties.cs
- XmlSerializerFaultFormatter.cs
- KnownTypesProvider.cs
- MatrixConverter.cs
- AuthorizationPolicyTypeElement.cs
- WebControlToolBoxItem.cs
- SingleObjectCollection.cs
- ContextDataSourceContextData.cs
- PackagingUtilities.cs
- RawStylusActions.cs
- FolderBrowserDialogDesigner.cs