Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- JournalEntry.cs
- RequestResizeEvent.cs
- BamlLocalizer.cs
- TextLine.cs
- HwndSubclass.cs
- DataProtection.cs
- ActiveDesignSurfaceEvent.cs
- ISFClipboardData.cs
- FunctionQuery.cs
- ContextMenuStrip.cs
- AccessibleObject.cs
- DataViewManager.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- DbConnectionPool.cs
- CodeChecksumPragma.cs
- EventLogPermissionEntry.cs
- Section.cs
- SqlMultiplexer.cs
- HwndTarget.cs
- TextBounds.cs
- DelayedRegex.cs
- TreeViewItem.cs
- TypeConverterHelper.cs
- EventlogProvider.cs
- XPathScanner.cs
- ExtractorMetadata.cs
- Int32AnimationBase.cs
- AspNetHostingPermission.cs
- SiteMapNodeCollection.cs
- tooltip.cs
- ArrayExtension.cs
- RelationshipEndCollection.cs
- MetadataArtifactLoader.cs
- UserValidatedEventArgs.cs
- XmlSignificantWhitespace.cs
- XamlTypeMapperSchemaContext.cs
- QuadraticEase.cs
- CompilerGeneratedAttribute.cs
- SecurityElement.cs
- XmlParser.cs
- CheckBoxField.cs
- PrinterResolution.cs
- EncoderFallback.cs
- ControlAdapter.cs
- NetworkStream.cs
- loginstatus.cs
- ThousandthOfEmRealDoubles.cs
- InheritanceAttribute.cs
- DictionarySectionHandler.cs
- CodeDomSerializerException.cs
- SqlEnums.cs
- MsmqTransportSecurityElement.cs
- DupHandleConnectionReader.cs
- DataGridColumnCollection.cs
- PersonalizablePropertyEntry.cs
- MetadataCollection.cs
- DataServiceClientException.cs
- COM2Enum.cs
- UserNameSecurityTokenAuthenticator.cs
- AmbientEnvironment.cs
- Int32RectConverter.cs
- ConfigXmlText.cs
- Events.cs
- PrinterResolution.cs
- NetDataContractSerializer.cs
- Border.cs
- DesigntimeLicenseContext.cs
- TabItem.cs
- XamlFigureLengthSerializer.cs
- ChannelDispatcher.cs
- OutOfMemoryException.cs
- XmlDownloadManager.cs
- InfoCardAsymmetricCrypto.cs
- GridViewUpdateEventArgs.cs
- ExceptionDetail.cs
- NavigatorInput.cs
- MenuEventArgs.cs
- SymDocumentType.cs
- ToolboxControl.cs
- HttpCacheParams.cs
- TypeInformation.cs
- SQLDoubleStorage.cs
- ActiveXContainer.cs
- DataTableReaderListener.cs
- SmiConnection.cs
- GeneralTransformGroup.cs
- ScrollableControl.cs
- CngProvider.cs
- ListViewInsertEventArgs.cs
- MenuItemCollection.cs
- RelationshipFixer.cs
- Module.cs
- MenuItemBinding.cs
- TableRowCollection.cs
- XmlEnumAttribute.cs
- Vertex.cs
- PageSettings.cs
- ConnectionsZone.cs
- CodeAttributeArgumentCollection.cs
- CacheOutputQuery.cs