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
- SerializationUtilities.cs
- ImageSource.cs
- BaseDataBoundControl.cs
- EqualityArray.cs
- ObjectContext.cs
- InvokeHandlers.cs
- XsltConvert.cs
- ChooseAction.cs
- ItemMap.cs
- processwaithandle.cs
- RotateTransform.cs
- JournalEntry.cs
- HwndHostAutomationPeer.cs
- SearchForVirtualItemEventArgs.cs
- ResXBuildProvider.cs
- ListMarkerLine.cs
- ThreadStartException.cs
- PrivilegedConfigurationManager.cs
- ComAdminInterfaces.cs
- ReadWriteObjectLock.cs
- XmlMtomWriter.cs
- UnmanagedHandle.cs
- XhtmlConformanceSection.cs
- WindowsFormsHostPropertyMap.cs
- DataControlFieldCollection.cs
- HtmlControl.cs
- ColorAnimationUsingKeyFrames.cs
- Stack.cs
- IChannel.cs
- PlatformNotSupportedException.cs
- cookie.cs
- Convert.cs
- EncoderFallback.cs
- GeneratedContractType.cs
- TargetConverter.cs
- WindowsEditBoxRange.cs
- InputScopeAttribute.cs
- TreeViewAutomationPeer.cs
- DataColumnMapping.cs
- ConfigurationStrings.cs
- TextComposition.cs
- InteropTrackingRecord.cs
- CodeMemberField.cs
- TypeDescriptorFilterService.cs
- ToolStripItemDesigner.cs
- CompareValidator.cs
- RoutedEventArgs.cs
- CreationContext.cs
- GradientStop.cs
- ZeroOpNode.cs
- ActiveXContainer.cs
- EditingMode.cs
- InkCanvas.cs
- safelinkcollection.cs
- HtmlTableRow.cs
- MsmqIntegrationOutputChannel.cs
- WebEventTraceProvider.cs
- ParameterSubsegment.cs
- BaseAutoFormat.cs
- ImageIndexConverter.cs
- AcceleratedTokenAuthenticator.cs
- SocketInformation.cs
- HyperlinkAutomationPeer.cs
- TextEditorDragDrop.cs
- DirectoryNotFoundException.cs
- WaitHandle.cs
- XmlSchemaCompilationSettings.cs
- Conditional.cs
- WeakEventManager.cs
- Lasso.cs
- Identifier.cs
- Converter.cs
- GridToolTip.cs
- WebServiceBindingAttribute.cs
- XmlHierarchicalDataSourceView.cs
- TimeIntervalCollection.cs
- MenuDesigner.cs
- DesignerGenericWebPart.cs
- PropertyMetadata.cs
- HashCodeCombiner.cs
- RenderOptions.cs
- AxisAngleRotation3D.cs
- OpacityConverter.cs
- WebHeaderCollection.cs
- FileIOPermission.cs
- CanExecuteRoutedEventArgs.cs
- CollectionType.cs
- StrokeCollectionDefaultValueFactory.cs
- XmlSchemaAppInfo.cs
- LineInfo.cs
- ExpressionReplacer.cs
- HttpEncoder.cs
- TypedElement.cs
- PrintDialog.cs
- ConfigurationValues.cs
- ModifiableIteratorCollection.cs
- XmlDownloadManager.cs
- mediaclock.cs
- QueryCursorEventArgs.cs
- PropertyToken.cs