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
- SystemFonts.cs
- ObjectContextServiceProvider.cs
- TemplateXamlParser.cs
- ReferentialConstraint.cs
- EventSinkActivity.cs
- SlotInfo.cs
- GlyphCache.cs
- AnimationTimeline.cs
- DesignerAttributeInfo.cs
- ExpressionBuilderCollection.cs
- Models.cs
- Rect3DValueSerializer.cs
- Constants.cs
- Converter.cs
- DebugControllerThread.cs
- ConnectionInterfaceCollection.cs
- RemotingServices.cs
- __ComObject.cs
- DocumentDesigner.cs
- SchemaCollectionCompiler.cs
- ProcessModelInfo.cs
- CodeAttributeArgumentCollection.cs
- WmlObjectListAdapter.cs
- ConnectionStringsExpressionBuilder.cs
- AsymmetricKeyExchangeDeformatter.cs
- ToolboxItemAttribute.cs
- CursorConverter.cs
- CutCopyPasteHelper.cs
- Quaternion.cs
- Section.cs
- Propagator.JoinPropagator.SubstitutingCloneVisitor.cs
- WebPartEditorOkVerb.cs
- SubstitutionList.cs
- HostedTcpTransportManager.cs
- ThicknessConverter.cs
- CompleteWizardStep.cs
- HttpProtocolReflector.cs
- KnowledgeBase.cs
- ReadOnlyPropertyMetadata.cs
- SpellerInterop.cs
- XMLDiffLoader.cs
- HtmlForm.cs
- Substitution.cs
- ConfigurationPropertyCollection.cs
- SelectedGridItemChangedEvent.cs
- SecurityHeader.cs
- XmlCustomFormatter.cs
- ErrorProvider.cs
- Operand.cs
- AssemblyAttributes.cs
- SecureConversationVersion.cs
- EndpointReference.cs
- DropDownList.cs
- ExpressionEditorAttribute.cs
- ElementUtil.cs
- WindowsFormsHostAutomationPeer.cs
- RenderTargetBitmap.cs
- PrincipalPermission.cs
- CodeBlockBuilder.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- XmlSchemaSequence.cs
- Expression.cs
- AutoGeneratedField.cs
- _SSPIWrapper.cs
- TouchesCapturedWithinProperty.cs
- UnsafeNativeMethods.cs
- PkcsUtils.cs
- EdmScalarPropertyAttribute.cs
- Trace.cs
- HashHelpers.cs
- X509AsymmetricSecurityKey.cs
- RIPEMD160Managed.cs
- DrawingDrawingContext.cs
- ControlValuePropertyAttribute.cs
- Condition.cs
- MenuEventArgs.cs
- MaskedTextProvider.cs
- DetailsViewCommandEventArgs.cs
- UrlPath.cs
- TreeIterators.cs
- RewritingSimplifier.cs
- MediaTimeline.cs
- DataException.cs
- XmlWrappingWriter.cs
- Point.cs
- ExceptionNotification.cs
- GC.cs
- AppearanceEditorPart.cs
- ApplicationManager.cs
- SpecialNameAttribute.cs
- DocumentXmlWriter.cs
- HttpListenerContext.cs
- EntityDataSourceEntitySetNameItem.cs
- ApplicationSecurityInfo.cs
- ToolboxItem.cs
- ErrorRuntimeConfig.cs
- RoutingChannelExtension.cs
- JoinGraph.cs
- TableLayoutPanelCellPosition.cs
- GridViewRowCollection.cs