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
- PrimitiveList.cs
- ClientBuildManager.cs
- GroupBox.cs
- HandledMouseEvent.cs
- NativeMethods.cs
- OletxVolatileEnlistment.cs
- SymbolEqualComparer.cs
- XPathPatternBuilder.cs
- BridgeDataRecord.cs
- NumberFunctions.cs
- PreservationFileReader.cs
- NotifyParentPropertyAttribute.cs
- ReaderWriterLockWrapper.cs
- SiteMapNodeItem.cs
- ConfigurationStrings.cs
- SqlRecordBuffer.cs
- ComponentConverter.cs
- XmlLinkedNode.cs
- SqlNodeAnnotation.cs
- SqlFileStream.cs
- ResourceExpression.cs
- PassportIdentity.cs
- DecoderFallback.cs
- Converter.cs
- CheckBox.cs
- TextDecoration.cs
- ConditionBrowserDialog.cs
- OracleRowUpdatingEventArgs.cs
- XmlElement.cs
- InvalidTimeZoneException.cs
- AttachInfo.cs
- ListItemCollection.cs
- UIPropertyMetadata.cs
- SQLInt32Storage.cs
- WebPartActionVerb.cs
- AxisAngleRotation3D.cs
- XmlChoiceIdentifierAttribute.cs
- TogglePattern.cs
- DynamicDataRouteHandler.cs
- returneventsaver.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- HashCodeCombiner.cs
- DocumentOrderQuery.cs
- Vector3DAnimation.cs
- SafeSystemMetrics.cs
- BookmarkNameHelper.cs
- Utilities.cs
- InkCanvas.cs
- OperatingSystemVersionCheck.cs
- EditorPartChrome.cs
- Stacktrace.cs
- TreeView.cs
- MessageQueueException.cs
- SmtpException.cs
- RegularExpressionValidator.cs
- RewritingProcessor.cs
- VisualState.cs
- PropertyContainer.cs
- Delegate.cs
- ConnectionPoint.cs
- EnumConverter.cs
- InstancePersistenceCommand.cs
- PopupRootAutomationPeer.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- HMACSHA256.cs
- CroppedBitmap.cs
- SamlAuthenticationClaimResource.cs
- FlowDocumentReader.cs
- Light.cs
- OpenFileDialog.cs
- UpDownEvent.cs
- ThreadInterruptedException.cs
- GuidelineSet.cs
- SamlDelegatingWriter.cs
- FormViewUpdatedEventArgs.cs
- RawStylusInputCustomData.cs
- XmlObjectSerializerReadContextComplex.cs
- CalendarDataBindingHandler.cs
- ScriptBehaviorDescriptor.cs
- HitTestFilterBehavior.cs
- filewebresponse.cs
- NativeMethodsCLR.cs
- CompatibleComparer.cs
- ListViewHitTestInfo.cs
- StreamResourceInfo.cs
- ContainerUtilities.cs
- RadioButton.cs
- UnsafeNativeMethods.cs
- ObjectDataSourceMethodEventArgs.cs
- GenericTextProperties.cs
- EntityDataSourceReferenceGroup.cs
- WeakReference.cs
- DbProviderManifest.cs
- PathNode.cs
- Timer.cs
- LogicalExpressionEditor.cs
- ArrayItemReference.cs
- UnsafeNativeMethods.cs
- GlobalDataBindingHandler.cs
- SymbolEqualComparer.cs