Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / securitycriticaldataformultiplegetandset.cs / 1305600 / 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
- Compensate.cs
- Drawing.cs
- AppearanceEditorPart.cs
- FocusManager.cs
- InkPresenterAutomationPeer.cs
- SqlParameter.cs
- FontCollection.cs
- ScriptDescriptor.cs
- RoleManagerEventArgs.cs
- ArgIterator.cs
- LocatorGroup.cs
- StreamingContext.cs
- EventPrivateKey.cs
- HashCoreRequest.cs
- VirtualDirectoryMappingCollection.cs
- SynchronizedDispatch.cs
- ConfigXmlWhitespace.cs
- AutomationProperty.cs
- SessionStateSection.cs
- DurableMessageDispatchInspector.cs
- translator.cs
- XamlInt32CollectionSerializer.cs
- IsolatedStorageFile.cs
- ResourcesBuildProvider.cs
- Material.cs
- SizeValueSerializer.cs
- AdapterUtil.cs
- SiteMembershipCondition.cs
- RecipientIdentity.cs
- Visual3D.cs
- Selector.cs
- DbConnectionPoolGroup.cs
- ToolStripButton.cs
- HtmlShim.cs
- ProviderCommandInfoUtils.cs
- AncestorChangedEventArgs.cs
- BinaryObjectReader.cs
- SchemaNames.cs
- DataGridViewRow.cs
- BoundsDrawingContextWalker.cs
- UIAgentMonitor.cs
- WaitForChangedResult.cs
- ColorPalette.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- SystemInfo.cs
- DashStyles.cs
- WebBrowser.cs
- LinkClickEvent.cs
- ValidationVisibilityAttribute.cs
- WmlCalendarAdapter.cs
- DataViewManagerListItemTypeDescriptor.cs
- DocumentViewerAutomationPeer.cs
- HandlerMappingMemo.cs
- CustomTrackingRecord.cs
- TextRangeBase.cs
- IdleTimeoutMonitor.cs
- SoapHttpTransportImporter.cs
- Point3D.cs
- DataSourceCacheDurationConverter.cs
- RepeatInfo.cs
- BinaryWriter.cs
- EditBehavior.cs
- OperandQuery.cs
- CustomAttribute.cs
- ScriptRegistrationManager.cs
- NavigationPropertyEmitter.cs
- SHA1.cs
- TranslateTransform.cs
- DataGridViewAdvancedBorderStyle.cs
- sitestring.cs
- PageAsyncTaskManager.cs
- ApplicationServiceManager.cs
- SqlBulkCopyColumnMapping.cs
- basemetadatamappingvisitor.cs
- XamlBrushSerializer.cs
- TextCollapsingProperties.cs
- TableLayoutStyle.cs
- BuilderElements.cs
- AsyncPostBackErrorEventArgs.cs
- ButtonChrome.cs
- GridViewRowPresenterBase.cs
- XslException.cs
- OSFeature.cs
- StrokeCollectionConverter.cs
- CompositeClientFormatter.cs
- ImmutableCollection.cs
- ApplicationServicesHostFactory.cs
- ArrangedElement.cs
- HwndTarget.cs
- IWorkflowDebuggerService.cs
- SqlDataSourceCustomCommandEditor.cs
- MD5.cs
- Point3DCollection.cs
- OutOfMemoryException.cs
- RootBrowserWindow.cs
- BooleanProjectedSlot.cs
- DispatcherFrame.cs
- MetabaseSettings.cs
- ServiceParser.cs
- SByte.cs