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
- IisTraceWebEventProvider.cs
- ObjectTokenCategory.cs
- CompositeCollection.cs
- CodeStatement.cs
- Win32.cs
- DataGridViewToolTip.cs
- TreeNodeCollectionEditor.cs
- DocumentNUp.cs
- FormViewRow.cs
- StateBag.cs
- DataKey.cs
- DependencyPropertyConverter.cs
- DesignerPerfEventProvider.cs
- InstanceData.cs
- MultidimensionalArrayItemReference.cs
- WebPartCollection.cs
- DbCommandDefinition.cs
- ProfileSection.cs
- Mutex.cs
- ByteAnimation.cs
- Cursors.cs
- JsonUriDataContract.cs
- PasswordDeriveBytes.cs
- FlowDocumentPage.cs
- DynamicILGenerator.cs
- TimeoutValidationAttribute.cs
- ValidatorAttribute.cs
- BindingListCollectionView.cs
- Hashtable.cs
- UnsafeNativeMethods.cs
- XmlAggregates.cs
- SystemIcmpV6Statistics.cs
- UmAlQuraCalendar.cs
- AvTrace.cs
- GridErrorDlg.cs
- FontSource.cs
- RotateTransform.cs
- COM2PropertyBuilderUITypeEditor.cs
- CharConverter.cs
- DataGridViewButtonColumn.cs
- FrameworkContextData.cs
- MemberHolder.cs
- QilReference.cs
- DesignBinding.cs
- Message.cs
- TreeNodeCollection.cs
- ScriptControlManager.cs
- HitTestFilterBehavior.cs
- StatusBarItemAutomationPeer.cs
- WebServiceEndpoint.cs
- COM2ColorConverter.cs
- NaturalLanguageHyphenator.cs
- ToolStripSeparator.cs
- HttpCacheParams.cs
- WebEvents.cs
- HttpModuleCollection.cs
- XmlName.cs
- CryptoSession.cs
- FormsAuthenticationEventArgs.cs
- SkewTransform.cs
- TextTreeTextNode.cs
- HostUtils.cs
- XPathNavigatorKeyComparer.cs
- ValueTypeIndexerReference.cs
- WhitespaceRule.cs
- Helper.cs
- DataControlField.cs
- __Error.cs
- AssociatedControlConverter.cs
- HwndSubclass.cs
- DispatcherHooks.cs
- StreamGeometry.cs
- VerbConverter.cs
- MetadataItemSerializer.cs
- Expression.cs
- ChtmlPhoneCallAdapter.cs
- Context.cs
- Tile.cs
- KeyInfo.cs
- SchemaImporter.cs
- HttpContext.cs
- ReadOnlyCollectionBase.cs
- RoutedEventConverter.cs
- TextClipboardData.cs
- ValueOfAction.cs
- SignerInfo.cs
- HttpServerVarsCollection.cs
- CodeDelegateInvokeExpression.cs
- Flattener.cs
- GlobalEventManager.cs
- Select.cs
- HwndAppCommandInputProvider.cs
- PersistenceTypeAttribute.cs
- MsmqHostedTransportConfiguration.cs
- LineGeometry.cs
- TableSectionStyle.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- CodeObjectCreateExpression.cs
- Model3DGroup.cs
- MultiTrigger.cs