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
- RuntimeHandles.cs
- LayoutExceptionEventArgs.cs
- Clock.cs
- WorkflowDebuggerSteppingAttribute.cs
- GradientBrush.cs
- TextDecorationCollection.cs
- EditorOptionAttribute.cs
- Freezable.cs
- ContactManager.cs
- EncryptedReference.cs
- ResourceSet.cs
- ParameterCollectionEditor.cs
- OleDbFactory.cs
- smtppermission.cs
- URLAttribute.cs
- WebPartEditorApplyVerb.cs
- CompilerResults.cs
- DataTableReaderListener.cs
- HtmlHistory.cs
- XsltOutput.cs
- ThreadPool.cs
- AssemblyNameProxy.cs
- NotCondition.cs
- StorageRoot.cs
- TableRow.cs
- IfAction.cs
- IncrementalReadDecoders.cs
- TableSectionStyle.cs
- SchemaImporterExtension.cs
- HyperLink.cs
- FormClosedEvent.cs
- DistributedTransactionPermission.cs
- XmlAttributeHolder.cs
- TextBoxAutoCompleteSourceConverter.cs
- RecognitionEventArgs.cs
- XPathNavigator.cs
- SurrogateChar.cs
- FormDocumentDesigner.cs
- DateTimeConverter2.cs
- AncestorChangedEventArgs.cs
- RawUIStateInputReport.cs
- ComboBoxRenderer.cs
- MessageQueueException.cs
- RelatedPropertyManager.cs
- AuthenticationServiceManager.cs
- Cell.cs
- Light.cs
- OutOfProcStateClientManager.cs
- NetworkStream.cs
- ExpandCollapsePattern.cs
- FixedElement.cs
- OletxDependentTransaction.cs
- PropertyKey.cs
- WebResourceUtil.cs
- DbModificationCommandTree.cs
- SamlSubject.cs
- CheckedListBox.cs
- FrameworkElementAutomationPeer.cs
- ColumnWidthChangingEvent.cs
- HttpCapabilitiesEvaluator.cs
- FormViewUpdatedEventArgs.cs
- ThicknessAnimation.cs
- TransferMode.cs
- NavigationEventArgs.cs
- ResourceExpression.cs
- RetrieveVirtualItemEventArgs.cs
- DataSourceComponent.cs
- SecUtil.cs
- Delay.cs
- VisualBasicExpressionConverter.cs
- DataSourceSerializationException.cs
- BasicExpandProvider.cs
- HtmlTableCell.cs
- TimeSpanConverter.cs
- DataGridParentRows.cs
- PiiTraceSource.cs
- PublisherMembershipCondition.cs
- DoubleConverter.cs
- MetadataConversionError.cs
- BaseParser.cs
- WebPartVerbsEventArgs.cs
- DataControlCommands.cs
- Utilities.cs
- DataObjectMethodAttribute.cs
- DefaultValidator.cs
- MarkerProperties.cs
- OciEnlistContext.cs
- LinearKeyFrames.cs
- ReadOnlyCollectionBase.cs
- WebPartCollection.cs
- DataGridViewCellPaintingEventArgs.cs
- RtfToken.cs
- PathFigure.cs
- TextBreakpoint.cs
- HyperLinkField.cs
- DataKey.cs
- MarshalDirectiveException.cs
- BuilderPropertyEntry.cs
- PropertyGroupDescription.cs
- ColumnCollectionEditor.cs