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
- ConnectionOrientedTransportChannelListener.cs
- XmlNode.cs
- RepeaterItemEventArgs.cs
- FlowNode.cs
- XamlDesignerSerializationManager.cs
- Win32.cs
- MemberDescriptor.cs
- Size.cs
- VisualStyleTypesAndProperties.cs
- RegexCompilationInfo.cs
- CheckedListBox.cs
- InstallerTypeAttribute.cs
- TerminatorSinks.cs
- PeerCustomResolverElement.cs
- CodeDelegateCreateExpression.cs
- PolicyValidationException.cs
- XmlPreloadedResolver.cs
- ISO2022Encoding.cs
- IdentityReference.cs
- ValidationEventArgs.cs
- PrintPreviewDialog.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- Marshal.cs
- InputReport.cs
- Label.cs
- FormViewDeletedEventArgs.cs
- Single.cs
- RegisteredDisposeScript.cs
- ToolStripEditorManager.cs
- FontInfo.cs
- WindowsToolbarAsMenu.cs
- SettingsContext.cs
- VirtualPath.cs
- OracleParameterCollection.cs
- SystemIPv4InterfaceProperties.cs
- SqlAggregateChecker.cs
- GlyphingCache.cs
- XmlBuffer.cs
- CommandPlan.cs
- IconConverter.cs
- ActivityCodeGenerator.cs
- RadioButtonStandardAdapter.cs
- InternalResources.cs
- SqlConnectionPoolGroupProviderInfo.cs
- CompressEmulationStream.cs
- ImmComposition.cs
- StructureChangedEventArgs.cs
- SizeAnimation.cs
- WmlFormAdapter.cs
- XmlDownloadManager.cs
- ValueProviderWrapper.cs
- WebBrowser.cs
- CombinedTcpChannel.cs
- ScrollContentPresenter.cs
- SqlNotificationEventArgs.cs
- WithParamAction.cs
- BindingList.cs
- XmlEntity.cs
- ProfileGroupSettings.cs
- CollectionChange.cs
- SecUtil.cs
- MultiView.cs
- TableRowGroupCollection.cs
- TrimSurroundingWhitespaceAttribute.cs
- ForceCopyBuildProvider.cs
- IPPacketInformation.cs
- SourceSwitch.cs
- BitmapEffectInput.cs
- CheckableControlBaseAdapter.cs
- MultiPageTextView.cs
- ListViewDeletedEventArgs.cs
- XNodeSchemaApplier.cs
- EntityDataSourceColumn.cs
- DetailsViewUpdateEventArgs.cs
- DBDataPermission.cs
- InfoCardSymmetricCrypto.cs
- BitmapMetadata.cs
- EdmToObjectNamespaceMap.cs
- TraceHandlerErrorFormatter.cs
- SqlMethodAttribute.cs
- SqlUdtInfo.cs
- DesignerDataConnection.cs
- Nodes.cs
- ChildrenQuery.cs
- EmptyTextWriter.cs
- OdbcConnection.cs
- FusionWrap.cs
- FileVersion.cs
- KnownIds.cs
- XmlSerializerVersionAttribute.cs
- ResolveCriteria.cs
- RelationshipConstraintValidator.cs
- WinInetCache.cs
- QueryContinueDragEventArgs.cs
- PrintEvent.cs
- TranslateTransform.cs
- IOThreadTimer.cs
- DataGridViewUtilities.cs
- KnownBoxes.cs
- MsmqHostedTransportConfiguration.cs