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
- SQLGuidStorage.cs
- ListArgumentProvider.cs
- XPathNodePointer.cs
- PenContexts.cs
- TimelineGroup.cs
- WebPartMenuStyle.cs
- Model3DGroup.cs
- CriticalExceptions.cs
- DES.cs
- FixedHighlight.cs
- OleDbParameter.cs
- InteropBitmapSource.cs
- DataGridViewSortCompareEventArgs.cs
- LocalizationParserHooks.cs
- TypeGeneratedEventArgs.cs
- SecurityPolicySection.cs
- HtmlUtf8RawTextWriter.cs
- SqlDataSourceTableQuery.cs
- XmlSchemaSet.cs
- Configuration.cs
- XmlNamedNodeMap.cs
- DirectoryInfo.cs
- ImageListImage.cs
- FontSource.cs
- AutomationIdentifierGuids.cs
- FontCollection.cs
- ClipboardData.cs
- sortedlist.cs
- IisTraceListener.cs
- GroupBox.cs
- ValidationEventArgs.cs
- WebServiceTypeData.cs
- WorkflowApplicationUnloadedException.cs
- ObjectCache.cs
- Contracts.cs
- Identity.cs
- XmlFormatExtensionPrefixAttribute.cs
- RepeaterItem.cs
- ConnectionConsumerAttribute.cs
- SoapObjectReader.cs
- DbConnectionStringBuilder.cs
- WindowsRichEditRange.cs
- validationstate.cs
- BypassElementCollection.cs
- AncillaryOps.cs
- LogAppendAsyncResult.cs
- BindingExpression.cs
- Predicate.cs
- InterleavedZipPartStream.cs
- System.Data.OracleClient_BID.cs
- OdbcInfoMessageEvent.cs
- SelectionWordBreaker.cs
- DataGridViewElement.cs
- SiteMapNodeItem.cs
- ListViewItemMouseHoverEvent.cs
- AutomationFocusChangedEventArgs.cs
- Part.cs
- SpellerError.cs
- HtmlDocument.cs
- Cursor.cs
- HttpProtocolImporter.cs
- OdbcException.cs
- TextHintingModeValidation.cs
- WaitHandle.cs
- EncryptedData.cs
- ImageAttributes.cs
- Image.cs
- OleDbTransaction.cs
- Native.cs
- SystemColors.cs
- ParallelTimeline.cs
- HyperLinkStyle.cs
- _OSSOCK.cs
- Coordinator.cs
- SqlAliasesReferenced.cs
- FrameworkTextComposition.cs
- RuntimeEnvironment.cs
- PersonalizationAdministration.cs
- entitydatasourceentitysetnameconverter.cs
- TypeSource.cs
- Codec.cs
- GeometryConverter.cs
- XslNumber.cs
- ClientTarget.cs
- DataBoundControlParameterTarget.cs
- WindowsTitleBar.cs
- StatusStrip.cs
- EditorPart.cs
- GridViewCommandEventArgs.cs
- FeatureSupport.cs
- FixUp.cs
- TextEditorLists.cs
- Section.cs
- DataGridViewComboBoxColumn.cs
- StorageBasedPackageProperties.cs
- SynchronizationContext.cs
- NamespaceQuery.cs
- GeometryDrawing.cs
- DrawingGroupDrawingContext.cs
- PageParserFilter.cs