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
- ThreadInterruptedException.cs
- FileEnumerator.cs
- SignatureToken.cs
- XmlILConstructAnalyzer.cs
- EventSetter.cs
- Currency.cs
- DoubleCollection.cs
- RootBuilder.cs
- Properties.cs
- PassportIdentity.cs
- ToolZone.cs
- EventRouteFactory.cs
- DataSourceCacheDurationConverter.cs
- ElementProxy.cs
- RangeBase.cs
- TableLayoutPanelCellPosition.cs
- ElementFactory.cs
- ResourcePool.cs
- ProtectedUri.cs
- MouseGestureConverter.cs
- WebPartZoneBase.cs
- BaseTypeViewSchema.cs
- ConfigUtil.cs
- NodeLabelEditEvent.cs
- HtmlDocument.cs
- DesignerOptionService.cs
- AsyncContentLoadedEventArgs.cs
- Grammar.cs
- XmlSchemaComplexContent.cs
- RowsCopiedEventArgs.cs
- HtmlHead.cs
- RelOps.cs
- HyperLink.cs
- XmlDataDocument.cs
- ConsoleEntryPoint.cs
- Figure.cs
- UDPClient.cs
- Misc.cs
- CallTemplateAction.cs
- WaitHandle.cs
- SrgsElementFactoryCompiler.cs
- ScrollProperties.cs
- QilBinary.cs
- mansign.cs
- NullableLongAverageAggregationOperator.cs
- Models.cs
- RotateTransform3D.cs
- SqlDataReader.cs
- WebPartTransformerCollection.cs
- ResourceReferenceExpressionConverter.cs
- WaitHandleCannotBeOpenedException.cs
- InstanceView.cs
- UIElementIsland.cs
- ConstructorExpr.cs
- TemplateParser.cs
- RequestQueryParser.cs
- WindowsFormsDesignerOptionService.cs
- UriScheme.cs
- ConfigurationManagerInternal.cs
- Compilation.cs
- BamlBinaryReader.cs
- ToolStripDesigner.cs
- QilName.cs
- XmlUtil.cs
- ViewRendering.cs
- SiteMapSection.cs
- WSFederationHttpSecurity.cs
- KeyTime.cs
- MonitoringDescriptionAttribute.cs
- ComplexObject.cs
- InfiniteTimeSpanConverter.cs
- SmiGettersStream.cs
- MessageTraceRecord.cs
- ImageCollectionCodeDomSerializer.cs
- DocumentGridContextMenu.cs
- FileChangesMonitor.cs
- CompoundFileDeflateTransform.cs
- COSERVERINFO.cs
- JavaScriptSerializer.cs
- AssociatedControlConverter.cs
- PixelShader.cs
- ProfessionalColorTable.cs
- AppDomain.cs
- ActivityUtilities.cs
- DataSvcMapFileSerializer.cs
- ArrayEditor.cs
- Buffer.cs
- MenuStrip.cs
- SettingsPropertyNotFoundException.cs
- ThreadAbortException.cs
- RegionData.cs
- DoubleLinkListEnumerator.cs
- FlatButtonAppearance.cs
- ProxyElement.cs
- DictionaryBase.cs
- BookmarkScopeHandle.cs
- CodeTypeDeclaration.cs
- CatalogPartCollection.cs
- MenuRenderer.cs
- CodeCommentStatementCollection.cs