Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / 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 : 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
- StateDesigner.cs
- MinimizableAttributeTypeConverter.cs
- DesignerOptions.cs
- ContractMapping.cs
- StandardCommands.cs
- CustomBindingCollectionElement.cs
- PeerToPeerException.cs
- DataSourceControl.cs
- Pair.cs
- ScalarType.cs
- NavigationPropertyEmitter.cs
- FixedSOMTableRow.cs
- RelationshipConverter.cs
- FieldNameLookup.cs
- Stylesheet.cs
- DocumentScope.cs
- TemplateNodeContextMenu.cs
- BinHexDecoder.cs
- SpecialTypeDataContract.cs
- PersonalizationProviderHelper.cs
- XmlILTrace.cs
- ReadOnlyKeyedCollection.cs
- DispatchWrapper.cs
- Viewport3DAutomationPeer.cs
- DataGridViewComboBoxCell.cs
- XNodeValidator.cs
- sqlcontext.cs
- CancelEventArgs.cs
- DataGridViewCellStyleChangedEventArgs.cs
- TextDecoration.cs
- MimeAnyImporter.cs
- GPPOINT.cs
- SmiContextFactory.cs
- Token.cs
- EventListener.cs
- AuthenticationManager.cs
- DesignerSerializerAttribute.cs
- _AcceptOverlappedAsyncResult.cs
- EntityDataSourceUtil.cs
- FixedTextView.cs
- InternalConfigEventArgs.cs
- MissingMethodException.cs
- XmlCharType.cs
- ClientRoleProvider.cs
- DetailsViewRowCollection.cs
- XXXOnTypeBuilderInstantiation.cs
- SQLInt16Storage.cs
- OdbcFactory.cs
- TemplateBamlTreeBuilder.cs
- KeyMatchBuilder.cs
- ConnectionDemuxer.cs
- ExpressionReplacer.cs
- MenuEventArgs.cs
- ProcessProtocolHandler.cs
- TrackingLocationCollection.cs
- BaseCodeDomTreeGenerator.cs
- TracedNativeMethods.cs
- MenuItem.cs
- shaperfactoryquerycachekey.cs
- ScrollChrome.cs
- CharEntityEncoderFallback.cs
- SessionStateUtil.cs
- TableLayoutPanel.cs
- WorkflowNamespace.cs
- ToolStripItemImageRenderEventArgs.cs
- IsolatedStorageFilePermission.cs
- DataGridViewColumnTypeEditor.cs
- Size3D.cs
- ContextStack.cs
- SmtpReplyReaderFactory.cs
- _Win32.cs
- NumericUpDownAcceleration.cs
- XmlSignatureProperties.cs
- SinglePhaseEnlistment.cs
- Scalars.cs
- MimeWriter.cs
- OdbcInfoMessageEvent.cs
- FileDialogCustomPlaces.cs
- DataListItemEventArgs.cs
- TrustLevel.cs
- SystemColors.cs
- WebPartConnectionsCancelEventArgs.cs
- ListView.cs
- sitestring.cs
- ApplicationGesture.cs
- MultitargetingHelpers.cs
- ApplicationSecurityInfo.cs
- _HelperAsyncResults.cs
- ImageButton.cs
- AppDomainShutdownMonitor.cs
- TemplatePropertyEntry.cs
- MatchAllMessageFilter.cs
- DurableInstanceProvider.cs
- invalidudtexception.cs
- ButtonAutomationPeer.cs
- SelectingProviderEventArgs.cs
- ComponentResourceManager.cs
- MetadataCache.cs
- RelationshipConverter.cs
- SymmetricAlgorithm.cs