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
- PerformanceCounterPermissionEntryCollection.cs
- MethodImplAttribute.cs
- TextRange.cs
- SiblingIterators.cs
- Rotation3DKeyFrameCollection.cs
- SystemUdpStatistics.cs
- DrawListViewItemEventArgs.cs
- NamespaceList.cs
- ConstructorArgumentAttribute.cs
- ReaderOutput.cs
- SeekStoryboard.cs
- SerializationStore.cs
- MouseGestureValueSerializer.cs
- PersonalizationEntry.cs
- ToolStripProgressBar.cs
- TemplatePagerField.cs
- HttpCapabilitiesBase.cs
- GeneralTransformGroup.cs
- IpcPort.cs
- XmlSchemaAnnotated.cs
- DataGridViewRowHeaderCell.cs
- MergeLocalizationDirectives.cs
- _FixedSizeReader.cs
- BindableTemplateBuilder.cs
- cookieexception.cs
- BindingCollection.cs
- HttpValueCollection.cs
- OptionUsage.cs
- WindowInteropHelper.cs
- TextSimpleMarkerProperties.cs
- XmlSchemaRedefine.cs
- ObjectDataSourceDesigner.cs
- CodeCatchClause.cs
- SqlError.cs
- TablePattern.cs
- FixedSchema.cs
- Int32AnimationUsingKeyFrames.cs
- FormViewDeleteEventArgs.cs
- FlowDocument.cs
- TimeoutValidationAttribute.cs
- DoubleCollectionConverter.cs
- PageHandlerFactory.cs
- QueryStatement.cs
- Int32Rect.cs
- MessageSmuggler.cs
- Transform3DGroup.cs
- Triangle.cs
- RightsManagementEncryptionTransform.cs
- TextSearch.cs
- Model3D.cs
- DispatchWrapper.cs
- LinqDataSourceSelectEventArgs.cs
- ClosureBinding.cs
- MetadataPropertyAttribute.cs
- NestPullup.cs
- XsdDuration.cs
- DataKey.cs
- JsonDataContract.cs
- ZipFileInfo.cs
- HebrewNumber.cs
- WebRequestModuleElement.cs
- GridLengthConverter.cs
- Trace.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- LinkedResourceCollection.cs
- ConfigurationSettings.cs
- KerberosSecurityTokenAuthenticator.cs
- DataGridBoolColumn.cs
- Matrix3DStack.cs
- PropertyBuilder.cs
- SerialPort.cs
- Html32TextWriter.cs
- JsonEnumDataContract.cs
- SQLDateTimeStorage.cs
- BamlLocalizabilityResolver.cs
- EventLogger.cs
- PerfCounterSection.cs
- ToolboxItemImageConverter.cs
- SqlCachedBuffer.cs
- TypeConverters.cs
- GlyphRunDrawing.cs
- TextParagraph.cs
- ContentValidator.cs
- MessageBuffer.cs
- NameValueSectionHandler.cs
- NavigationPropertyEmitter.cs
- RequestContext.cs
- TypeValidationEventArgs.cs
- ResourceReferenceKeyNotFoundException.cs
- BuildProvidersCompiler.cs
- XmlNamespaceMapping.cs
- ToolStripPanelCell.cs
- NumberSubstitution.cs
- ComponentCollection.cs
- HttpHeaderCollection.cs
- QilInvokeEarlyBound.cs
- HMACSHA1.cs
- MessageBox.cs
- Transform3DGroup.cs
- MdiWindowListStrip.cs