Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / securitycriticaldataformultiplegetandset.cs / 1 / 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
- SoapFault.cs
- ResourceAssociationSet.cs
- TextSpan.cs
- DecoderExceptionFallback.cs
- Interlocked.cs
- ResetableIterator.cs
- Sentence.cs
- HttpTransportElement.cs
- NetPeerTcpBinding.cs
- AnimationStorage.cs
- TagMapCollection.cs
- TextEditorCharacters.cs
- DateTimeEditor.cs
- MainMenu.cs
- Soap.cs
- HitTestFilterBehavior.cs
- GuidelineCollection.cs
- EntityContainerEmitter.cs
- ImageEditor.cs
- _AcceptOverlappedAsyncResult.cs
- DesignerTransactionCloseEvent.cs
- FormCollection.cs
- ApplicationId.cs
- FormViewPageEventArgs.cs
- LineMetrics.cs
- DataGridViewRowsRemovedEventArgs.cs
- HotSpot.cs
- Queue.cs
- ComPlusContractBehavior.cs
- SqlUnionizer.cs
- DataProtection.cs
- BuildProviderAppliesToAttribute.cs
- EventLogLink.cs
- IChannel.cs
- CharacterHit.cs
- RecognizedAudio.cs
- ComponentSerializationService.cs
- SymmetricSecurityProtocol.cs
- CodeGenerator.cs
- ColorConvertedBitmap.cs
- PresentationAppDomainManager.cs
- XmlDataLoader.cs
- InternalMappingException.cs
- EmptyEnumerator.cs
- XmlText.cs
- NumberSubstitution.cs
- XmlWriterTraceListener.cs
- ActionMessageFilterTable.cs
- PartialTrustVisibleAssembly.cs
- ModuleElement.cs
- MergeFilterQuery.cs
- OptimizedTemplateContentHelper.cs
- CustomAttributeBuilder.cs
- CompositeKey.cs
- IsolatedStorage.cs
- EntityViewContainer.cs
- KeysConverter.cs
- ByteStream.cs
- UIElement3DAutomationPeer.cs
- HotCommands.cs
- XsdDuration.cs
- SqlException.cs
- OutgoingWebResponseContext.cs
- ExtensionFile.cs
- OLEDB_Enum.cs
- SessionEndingEventArgs.cs
- HebrewCalendar.cs
- UdpContractFilterBehavior.cs
- CompilerParameters.cs
- SBCSCodePageEncoding.cs
- DynamicValidatorEventArgs.cs
- StorageScalarPropertyMapping.cs
- GlyphShapingProperties.cs
- IsolatedStorageException.cs
- SafeNativeMethodsOther.cs
- SemanticResultKey.cs
- PauseStoryboard.cs
- XmlNamespaceMappingCollection.cs
- DiscardableAttribute.cs
- datacache.cs
- StringConcat.cs
- HostingEnvironmentException.cs
- TransformedBitmap.cs
- FamilyMap.cs
- Roles.cs
- MissingManifestResourceException.cs
- TypeExtension.cs
- XmlElement.cs
- EdmPropertyAttribute.cs
- InkPresenterAutomationPeer.cs
- ObjectAnimationBase.cs
- DataExchangeServiceBinder.cs
- TextTreeNode.cs
- WebBrowserContainer.cs
- CatalogPartCollection.cs
- OutputCacheProfile.cs
- DbParameterHelper.cs
- BindingSource.cs
- TimeIntervalCollection.cs
- TouchesOverProperty.cs