Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- CodeGroup.cs
- CalendarTable.cs
- Transactions.cs
- VarRemapper.cs
- SchemaCollectionPreprocessor.cs
- LayoutSettings.cs
- FormatConvertedBitmap.cs
- AssemblyResourceLoader.cs
- ElementHostPropertyMap.cs
- SqlDependency.cs
- AuditLevel.cs
- HtmlCommandAdapter.cs
- WebBodyFormatMessageProperty.cs
- IpcPort.cs
- LogPolicy.cs
- WarningException.cs
- ProxyWebPart.cs
- Stylesheet.cs
- SubclassTypeValidator.cs
- AnnotationDocumentPaginator.cs
- NetSectionGroup.cs
- WebPartsSection.cs
- RuntimeIdentifierPropertyAttribute.cs
- EdmPropertyAttribute.cs
- TextDpi.cs
- WeakHashtable.cs
- ControlCachePolicy.cs
- ButtonChrome.cs
- ConfigUtil.cs
- LinkedResource.cs
- _NegotiateClient.cs
- ReflectionTypeLoadException.cs
- ReadOnlyHierarchicalDataSourceView.cs
- GenericEnumerator.cs
- ContextCorrelationInitializer.cs
- EasingQuaternionKeyFrame.cs
- WinCategoryAttribute.cs
- RightsManagementProvider.cs
- ipaddressinformationcollection.cs
- ArrayTypeMismatchException.cs
- BCLDebug.cs
- CodeTypeOfExpression.cs
- VerificationException.cs
- DispatcherObject.cs
- Script.cs
- IntranetCredentialPolicy.cs
- ColumnResizeUndoUnit.cs
- PartialTrustVisibleAssembly.cs
- EventKeyword.cs
- ExpressionConverter.cs
- Encoding.cs
- UIElementParagraph.cs
- QuaternionAnimationBase.cs
- StyleReferenceConverter.cs
- ResourceDefaultValueAttribute.cs
- HebrewNumber.cs
- EventSourceCreationData.cs
- DecoderFallback.cs
- CommonDialog.cs
- CategoryGridEntry.cs
- COM2ExtendedBrowsingHandler.cs
- SoapAttributeAttribute.cs
- SplitContainer.cs
- BinarySerializer.cs
- PointCollection.cs
- RefreshEventArgs.cs
- SiteMapDataSourceDesigner.cs
- FontNamesConverter.cs
- Selection.cs
- SqlDataSource.cs
- ArrangedElement.cs
- LayoutManager.cs
- MissingMethodException.cs
- WebPartZoneCollection.cs
- BamlTreeUpdater.cs
- ContextQuery.cs
- AsymmetricSignatureDeformatter.cs
- SafeNativeMethods.cs
- DecoderNLS.cs
- GlyphShapingProperties.cs
- CodeDomLoader.cs
- BadImageFormatException.cs
- RNGCryptoServiceProvider.cs
- CipherData.cs
- DataGridViewSelectedColumnCollection.cs
- InstanceDataCollection.cs
- BidirectionalDictionary.cs
- DbProviderConfigurationHandler.cs
- ProtocolsConfiguration.cs
- SplitterPanel.cs
- CompilationRelaxations.cs
- DataTransferEventArgs.cs
- NetworkInformationException.cs
- PreservationFileReader.cs
- ResizeBehavior.cs
- OdbcTransaction.cs
- FlatButtonAppearance.cs
- Endpoint.cs
- SimpleMailWebEventProvider.cs
- DetailsViewInsertEventArgs.cs