Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 : [....] 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
- Attributes.cs
- WebRequest.cs
- Size3D.cs
- counter.cs
- CodeDesigner.cs
- DefaultTextStoreTextComposition.cs
- PrivateFontCollection.cs
- ExtendedPropertyInfo.cs
- Camera.cs
- UnsettableComboBox.cs
- FormViewActionList.cs
- GenericTextProperties.cs
- Utils.cs
- ReadWriteSpinLock.cs
- DBNull.cs
- control.ime.cs
- AssociativeAggregationOperator.cs
- EventManager.cs
- XmlWellformedWriter.cs
- OptimalBreakSession.cs
- SQLGuid.cs
- RuleSetReference.cs
- ListenerHandler.cs
- SeverityFilter.cs
- ColumnWidthChangedEvent.cs
- DataGridViewLayoutData.cs
- webbrowsersite.cs
- BamlRecordWriter.cs
- TextBoxDesigner.cs
- ScriptingSectionGroup.cs
- Rule.cs
- CellConstantDomain.cs
- Update.cs
- SafeBitVector32.cs
- CacheEntry.cs
- shaper.cs
- CopyNodeSetAction.cs
- CodeFieldReferenceExpression.cs
- SafePEFileHandle.cs
- SamlSecurityTokenAuthenticator.cs
- KeyPressEvent.cs
- EmptyStringExpandableObjectConverter.cs
- WorkflowDesignerColors.cs
- DbMetaDataFactory.cs
- WasAdminWrapper.cs
- DSASignatureFormatter.cs
- SchemaComplexType.cs
- EmbeddedMailObject.cs
- ThreadExceptionEvent.cs
- HttpRawResponse.cs
- TextCompositionManager.cs
- UrlMapping.cs
- CqlWriter.cs
- CachedTypeface.cs
- MessageVersion.cs
- DbReferenceCollection.cs
- DbTypeMap.cs
- ViewValidator.cs
- Debug.cs
- HttpCookieCollection.cs
- ContentPlaceHolder.cs
- ExtractedStateEntry.cs
- DataGridViewLayoutData.cs
- AssociationEndMember.cs
- SerializationFieldInfo.cs
- BitmapEffectCollection.cs
- BaseTreeIterator.cs
- BadImageFormatException.cs
- ValueTable.cs
- OutOfMemoryException.cs
- EnumMember.cs
- IdnMapping.cs
- SrgsElementList.cs
- NotSupportedException.cs
- DataKeyCollection.cs
- UnsafeNativeMethods.cs
- FixedPosition.cs
- SchemaNamespaceManager.cs
- RadialGradientBrush.cs
- RadioButtonBaseAdapter.cs
- CompositeCollection.cs
- BitmapImage.cs
- TextBoxView.cs
- XmlToDatasetMap.cs
- XmlLinkedNode.cs
- TraceLog.cs
- WebScriptServiceHostFactory.cs
- GridItemPattern.cs
- ProcessHostMapPath.cs
- IIS7WorkerRequest.cs
- CroppedBitmap.cs
- AssemblyCollection.cs
- SiteMapPath.cs
- MsmqTransportBindingElement.cs
- DoubleKeyFrameCollection.cs
- Duration.cs
- CommonBehaviorsSection.cs
- EncoderNLS.cs
- UncommonField.cs
- QueryableFilterUserControl.cs