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
- EventDescriptorCollection.cs
- Baml6ConstructorInfo.cs
- XhtmlBasicLiteralTextAdapter.cs
- DataColumnMapping.cs
- PerformanceCountersElement.cs
- KeyValueSerializer.cs
- ImageMapEventArgs.cs
- XmlDeclaration.cs
- BuildProvidersCompiler.cs
- WebPartCatalogCloseVerb.cs
- ArgumentsParser.cs
- sqlser.cs
- SafeBitVector32.cs
- DataKeyCollection.cs
- BooleanToVisibilityConverter.cs
- PageSetupDialog.cs
- ModuleConfigurationInfo.cs
- HtmlTableRow.cs
- StylusPoint.cs
- XpsFilter.cs
- CategoryValueConverter.cs
- ICspAsymmetricAlgorithm.cs
- Queue.cs
- InteropBitmapSource.cs
- XmlHelper.cs
- Automation.cs
- ColumnWidthChangedEvent.cs
- TemplateKeyConverter.cs
- DataGridViewBand.cs
- OleDbParameterCollection.cs
- InvalidProgramException.cs
- ValidationHelper.cs
- ErrorWebPart.cs
- KoreanCalendar.cs
- TemplatedAdorner.cs
- BitConverter.cs
- ImageInfo.cs
- recordstatefactory.cs
- FileVersionInfo.cs
- TransformationRules.cs
- EventMappingSettings.cs
- InvalidDataContractException.cs
- SourceChangedEventArgs.cs
- NameTable.cs
- WindowsFormsHost.cs
- WorkflowViewElement.cs
- DeclaredTypeValidatorAttribute.cs
- TextTreeNode.cs
- HwndSubclass.cs
- Monitor.cs
- Point.cs
- ThreadStartException.cs
- ImageCodecInfoPrivate.cs
- MeasurementDCInfo.cs
- HttpBindingExtension.cs
- GlobalizationAssembly.cs
- MetadataArtifactLoaderCompositeResource.cs
- Schema.cs
- ValidationHelper.cs
- latinshape.cs
- MarginCollapsingState.cs
- LogicalExpr.cs
- ItemsPanelTemplate.cs
- NegotiationTokenAuthenticatorStateCache.cs
- DataListComponentEditor.cs
- LoginCancelEventArgs.cs
- ExtentCqlBlock.cs
- Column.cs
- Stroke.cs
- HtmlElementCollection.cs
- RequestStatusBarUpdateEventArgs.cs
- FusionWrap.cs
- FamilyMap.cs
- AmbientValueAttribute.cs
- PathData.cs
- ConnectionsZoneAutoFormat.cs
- PenThreadWorker.cs
- StyleBamlRecordReader.cs
- PolicyStatement.cs
- PersistChildrenAttribute.cs
- AggregateException.cs
- Interlocked.cs
- EditorPart.cs
- EncryptedPackageFilter.cs
- SBCSCodePageEncoding.cs
- SocketAddress.cs
- CustomLineCap.cs
- Transaction.cs
- LineVisual.cs
- Journal.cs
- Task.cs
- MenuItemBinding.cs
- CatchBlock.cs
- DataTableNewRowEvent.cs
- ContentFilePart.cs
- RegexCapture.cs
- StorageRoot.cs
- ClientApiGenerator.cs
- StrokeCollection.cs
- RowType.cs