Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ServiceOperation.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- WpfKnownTypeInvoker.cs
- RequestCacheManager.cs
- ContentOnlyMessage.cs
- MetafileHeaderEmf.cs
- TdsParserStateObject.cs
- Metafile.cs
- EntityCommandCompilationException.cs
- ProtocolsInstallComponent.cs
- ApplicationCommands.cs
- SmtpLoginAuthenticationModule.cs
- SrgsSemanticInterpretationTag.cs
- Set.cs
- KoreanLunisolarCalendar.cs
- ThreadBehavior.cs
- BooleanSwitch.cs
- COM2ExtendedBrowsingHandler.cs
- Accessible.cs
- TargetPerspective.cs
- Configuration.cs
- DesignerActionVerbList.cs
- ToolStripSeparator.cs
- ReflectionPermission.cs
- HttpWebResponse.cs
- OletxCommittableTransaction.cs
- CodeGeneratorAttribute.cs
- XmlChildNodes.cs
- SurrogateEncoder.cs
- ToolStripButton.cs
- DeferredTextReference.cs
- AutoSizeToolBoxItem.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- VisualProxy.cs
- Message.cs
- ConnectionConsumerAttribute.cs
- FontFamilyValueSerializer.cs
- RotateTransform3D.cs
- MonthCalendar.cs
- Type.cs
- BordersPage.cs
- Trigger.cs
- _ListenerAsyncResult.cs
- XPathMultyIterator.cs
- ContractMapping.cs
- SiteMapNode.cs
- DataKeyPropertyAttribute.cs
- documentation.cs
- PriorityQueue.cs
- BufferedStream2.cs
- Propagator.ExtentPlaceholderCreator.cs
- DoubleUtil.cs
- XmlSchemaException.cs
- HttpDictionary.cs
- AppSettingsReader.cs
- UpWmlPageAdapter.cs
- DragDeltaEventArgs.cs
- BoundingRectTracker.cs
- ControlTemplate.cs
- LinqDataSourceSelectEventArgs.cs
- TableCell.cs
- AccessDataSourceDesigner.cs
- PropertyContainer.cs
- ContentElementCollection.cs
- ImageAutomationPeer.cs
- StructuralComparisons.cs
- InfoCardArgumentException.cs
- _PooledStream.cs
- AvTraceFormat.cs
- UnknownWrapper.cs
- DES.cs
- EventLogPermissionAttribute.cs
- ResourcePermissionBase.cs
- SafeNativeMethods.cs
- ListControlConvertEventArgs.cs
- ChtmlPhoneCallAdapter.cs
- HttpResponseHeader.cs
- SeekableReadStream.cs
- ToolStripSettings.cs
- LabelEditEvent.cs
- LinkedDataMemberFieldEditor.cs
- DataGridViewCellLinkedList.cs
- DropShadowEffect.cs
- UInt16Converter.cs
- TypeHelpers.cs
- CommandCollectionEditor.cs
- IdentityManager.cs
- WorkflowElementDialog.cs
- DataGridItemCollection.cs
- DeploymentSection.cs
- DataGridCommandEventArgs.cs
- TextServicesHost.cs
- XmlSchemaSimpleType.cs
- HtmlTableCellCollection.cs
- Polyline.cs
- DataGridAutoGeneratingColumnEventArgs.cs
- SqlInternalConnection.cs
- TableLayoutPanelCellPosition.cs
- DBSchemaRow.cs
- CacheManager.cs