Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // //// 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
- PeerOutputChannel.cs
- AdPostCacheSubstitution.cs
- sqlpipe.cs
- MULTI_QI.cs
- WriterOutput.cs
- Triplet.cs
- MemberAssignmentAnalysis.cs
- AstNode.cs
- Compiler.cs
- PasswordTextContainer.cs
- Polyline.cs
- AmbientLight.cs
- ColumnCollection.cs
- Double.cs
- GeometryModel3D.cs
- SafeEventLogWriteHandle.cs
- OleDbConnection.cs
- TableItemStyle.cs
- SerializationFieldInfo.cs
- IncrementalCompileAnalyzer.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ManagedIStream.cs
- XmlWrappingReader.cs
- OleDbError.cs
- InstancePersistenceException.cs
- LineUtil.cs
- SecurityProtocolCorrelationState.cs
- ActivationArguments.cs
- CustomPopupPlacement.cs
- GenericEnumerator.cs
- Page.cs
- Vector3DIndependentAnimationStorage.cs
- ToolStripArrowRenderEventArgs.cs
- TableStyle.cs
- PublishLicense.cs
- CacheEntry.cs
- OleDbTransaction.cs
- TitleStyle.cs
- FixedFlowMap.cs
- DataGridViewRowPostPaintEventArgs.cs
- PagesChangedEventArgs.cs
- FileIOPermission.cs
- MimeTypeAttribute.cs
- smtppermission.cs
- VerificationException.cs
- SqlDataReaderSmi.cs
- ViewManager.cs
- FontUnit.cs
- XmlDataSourceNodeDescriptor.cs
- MissingMethodException.cs
- SafeUserTokenHandle.cs
- Evidence.cs
- LogStream.cs
- BooleanAnimationBase.cs
- SpeakProgressEventArgs.cs
- DecimalAnimationUsingKeyFrames.cs
- DataGridRowsPresenter.cs
- ApplicationDirectory.cs
- ObjectListCommandsPage.cs
- _DomainName.cs
- IntranetCredentialPolicy.cs
- TypeUtil.cs
- FontWeight.cs
- MethodSignatureGenerator.cs
- FindCriteria.cs
- TargetConverter.cs
- JsonWriter.cs
- TextAnchor.cs
- BaseHashHelper.cs
- ApplicationGesture.cs
- ColumnMapCopier.cs
- UIPermission.cs
- ReturnValue.cs
- EventRecordWrittenEventArgs.cs
- SerialErrors.cs
- SpnegoTokenAuthenticator.cs
- XmlNamespaceManager.cs
- AbstractExpressions.cs
- UpdateManifestForBrowserApplication.cs
- ExpressionBuilder.cs
- BufferModesCollection.cs
- MultiBinding.cs
- PartialClassGenerationTaskInternal.cs
- StrokeNodeEnumerator.cs
- DataGridViewComboBoxColumn.cs
- SafeHandle.cs
- MessageSmuggler.cs
- SHA384CryptoServiceProvider.cs
- PropertyInfoSet.cs
- LifetimeServices.cs
- EditorZone.cs
- WebPartCloseVerb.cs
- SequenceDesignerAccessibleObject.cs
- ColorBlend.cs
- ScalarOps.cs
- AssertValidation.cs
- _Semaphore.cs
- OverflowException.cs
- LogicalTreeHelper.cs
- IdnElement.cs