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
- LockCookie.cs
- Metafile.cs
- CompiledQuery.cs
- WmlLiteralTextAdapter.cs
- EDesignUtil.cs
- WebControlsSection.cs
- OdbcUtils.cs
- ListenerSingletonConnectionReader.cs
- PhonemeEventArgs.cs
- Matrix.cs
- KeysConverter.cs
- IpcServerChannel.cs
- EventPrivateKey.cs
- Graphics.cs
- ProviderIncompatibleException.cs
- PropertyExpression.cs
- ScriptResourceAttribute.cs
- LineInfo.cs
- Site.cs
- Int64Storage.cs
- PrimarySelectionAdorner.cs
- ActivityCollectionMarkupSerializer.cs
- Style.cs
- SingleObjectCollection.cs
- Italic.cs
- RecordBuilder.cs
- Camera.cs
- DrawingAttributeSerializer.cs
- Base64Stream.cs
- CqlWriter.cs
- MethodToken.cs
- TabControl.cs
- DeclarativeCatalogPart.cs
- DoubleAverageAggregationOperator.cs
- FigureParagraph.cs
- NoneExcludedImageIndexConverter.cs
- ObjectStateManager.cs
- Barrier.cs
- _ProxyChain.cs
- CryptoHelper.cs
- DLinqColumnProvider.cs
- UpdateEventArgs.cs
- StringValidatorAttribute.cs
- DesignerSerializerAttribute.cs
- TextViewDesigner.cs
- MessageQuerySet.cs
- SamlNameIdentifierClaimResource.cs
- KeyConstraint.cs
- ConsumerConnectionPointCollection.cs
- IpcClientManager.cs
- RequestBringIntoViewEventArgs.cs
- XmlTextAttribute.cs
- Win32SafeHandles.cs
- HttpContextServiceHost.cs
- TemplateNodeContextMenu.cs
- TextProviderWrapper.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- MulticastDelegate.cs
- AmbientProperties.cs
- QilGeneratorEnv.cs
- ListView.cs
- IndexerNameAttribute.cs
- HandlerMappingMemo.cs
- VectorAnimationBase.cs
- sqlcontext.cs
- PersonalizationProviderCollection.cs
- WebPartConnectionCollection.cs
- SqlTriggerAttribute.cs
- ThemeableAttribute.cs
- ValidatingPropertiesEventArgs.cs
- TransformerInfoCollection.cs
- TrackingStringDictionary.cs
- AssemblyAttributesGoHere.cs
- CapabilitiesAssignment.cs
- LinkLabelLinkClickedEvent.cs
- DateTimeValueSerializer.cs
- FormViewCommandEventArgs.cs
- UIPermission.cs
- DbRetry.cs
- NodeInfo.cs
- PlanCompilerUtil.cs
- ListenerSessionConnectionReader.cs
- ArrayEditor.cs
- MetabaseReader.cs
- ServiceProviders.cs
- TraceContext.cs
- SHA384.cs
- AuthorizationRuleCollection.cs
- PerformanceCountersElement.cs
- WebPartDisplayModeEventArgs.cs
- InfoCardArgumentException.cs
- CodeFieldReferenceExpression.cs
- KeyToListMap.cs
- EntityContainerRelationshipSet.cs
- ClosableStream.cs
- BinaryQueryOperator.cs
- TcpTransportManager.cs
- DataStreamFromComStream.cs
- AsymmetricSignatureFormatter.cs
- cookiecontainer.cs