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
- CultureTable.cs
- Vector.cs
- JsonSerializer.cs
- ImportCatalogPart.cs
- WindowsMenu.cs
- WebPartsPersonalization.cs
- _HeaderInfoTable.cs
- ASCIIEncoding.cs
- DisplayInformation.cs
- DefaultHttpHandler.cs
- StylusEditingBehavior.cs
- DeflateStreamAsyncResult.cs
- InputLangChangeRequestEvent.cs
- ImageMap.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- StructureChangedEventArgs.cs
- FormsAuthenticationUser.cs
- DetailsViewRow.cs
- TextRangeBase.cs
- HtmlTableRowCollection.cs
- ImportContext.cs
- HtmlElementCollection.cs
- Expr.cs
- ProcessHostFactoryHelper.cs
- EditorPart.cs
- HeaderUtility.cs
- UriScheme.cs
- LambdaCompiler.ControlFlow.cs
- RootBrowserWindowAutomationPeer.cs
- ApplicationProxyInternal.cs
- BitmapImage.cs
- AppDomainInstanceProvider.cs
- documentsequencetextcontainer.cs
- OdbcEnvironmentHandle.cs
- WebRequestModuleElementCollection.cs
- DirectoryGroupQuery.cs
- BrowsableAttribute.cs
- ApplicationInfo.cs
- MSAAWinEventWrap.cs
- GridToolTip.cs
- PeerPresenceInfo.cs
- AdapterDictionary.cs
- ObjectViewQueryResultData.cs
- TreeBuilderXamlTranslator.cs
- WorkflowCreationContext.cs
- ReplyChannelAcceptor.cs
- EventSinkActivity.cs
- DesignerCategoryAttribute.cs
- PrivilegeNotHeldException.cs
- DynamicValidatorEventArgs.cs
- JoinSymbol.cs
- Function.cs
- GPPOINT.cs
- SmiRecordBuffer.cs
- IntSecurity.cs
- messageonlyhwndwrapper.cs
- ConstructorArgumentAttribute.cs
- XhtmlBasicTextViewAdapter.cs
- COM2AboutBoxPropertyDescriptor.cs
- RepeatButtonAutomationPeer.cs
- OpenFileDialog.cs
- CustomCategoryAttribute.cs
- DataMisalignedException.cs
- FileStream.cs
- InternalConfigSettingsFactory.cs
- Timeline.cs
- exports.cs
- _UriTypeConverter.cs
- IPipelineRuntime.cs
- Floater.cs
- RankException.cs
- DBSqlParserTableCollection.cs
- OutOfMemoryException.cs
- HasCopySemanticsAttribute.cs
- SuppressMessageAttribute.cs
- RecordConverter.cs
- SpnegoTokenProvider.cs
- ScrollChrome.cs
- XsdValidatingReader.cs
- SourceLineInfo.cs
- ProviderConnectionPoint.cs
- UmAlQuraCalendar.cs
- XpsSerializationManagerAsync.cs
- SqlMethodAttribute.cs
- Rotation3DKeyFrameCollection.cs
- ServiceModelConfigurationSectionGroup.cs
- ProfileGroupSettingsCollection.cs
- pingexception.cs
- TemplateColumn.cs
- TdsRecordBufferSetter.cs
- WmfPlaceableFileHeader.cs
- _NtlmClient.cs
- StateBag.cs
- DataBoundControlParameterTarget.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- FileDialog.cs
- XamlPoint3DCollectionSerializer.cs
- X509ThumbprintKeyIdentifierClause.cs
- ValidationErrorCollection.cs
- ProfilePropertySettings.cs