Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 : [....] 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
- Control.cs
- WebSysDisplayNameAttribute.cs
- SqlConnectionStringBuilder.cs
- TimeoutHelper.cs
- DrawingAttributesDefaultValueFactory.cs
- RootDesignerSerializerAttribute.cs
- ApplicationGesture.cs
- BoundColumn.cs
- SamlAction.cs
- FileIOPermission.cs
- DrawListViewSubItemEventArgs.cs
- PrivateFontCollection.cs
- AmbientEnvironment.cs
- DataControlFieldCollection.cs
- DataGridItemEventArgs.cs
- ToolStripDropDownMenu.cs
- DisableDpiAwarenessAttribute.cs
- State.cs
- WebPartMovingEventArgs.cs
- XmlSchemaChoice.cs
- TimestampInformation.cs
- RawMouseInputReport.cs
- UmAlQuraCalendar.cs
- InteropAutomationProvider.cs
- ToolboxComponentsCreatedEventArgs.cs
- SqlParameterCollection.cs
- ListComponentEditorPage.cs
- MemoryPressure.cs
- EventsTab.cs
- ViewGenResults.cs
- SystemInformation.cs
- MenuScrollingVisibilityConverter.cs
- VBIdentifierName.cs
- SupportsPreviewControlAttribute.cs
- TemplateXamlParser.cs
- FixedSOMLineCollection.cs
- HttpGetServerProtocol.cs
- FormViewRow.cs
- Query.cs
- StylusPoint.cs
- DataContext.cs
- Thread.cs
- IndividualDeviceConfig.cs
- ColorTransform.cs
- SdlChannelSink.cs
- ObjectAnimationBase.cs
- Globals.cs
- webproxy.cs
- PublisherIdentityPermission.cs
- ResourcesBuildProvider.cs
- SecureEnvironment.cs
- FindCriteria11.cs
- AdapterDictionary.cs
- EventListener.cs
- XamlStream.cs
- WebDescriptionAttribute.cs
- HierarchicalDataBoundControl.cs
- ResourceReader.cs
- WebPartPersonalization.cs
- SchemaTableColumn.cs
- TemplatedAdorner.cs
- UriTemplateLiteralPathSegment.cs
- UserNamePasswordValidationMode.cs
- Flattener.cs
- DatagridviewDisplayedBandsData.cs
- EntityModelBuildProvider.cs
- PerspectiveCamera.cs
- ParseChildrenAsPropertiesAttribute.cs
- Single.cs
- RtfToken.cs
- AppDomain.cs
- OAVariantLib.cs
- TextEditor.cs
- DataGridViewRowHeaderCell.cs
- DataGridTable.cs
- DetailsViewPageEventArgs.cs
- ModuleBuilder.cs
- DefaultValueAttribute.cs
- odbcmetadatacollectionnames.cs
- TypeConverterHelper.cs
- UxThemeWrapper.cs
- ToolboxComponentsCreatingEventArgs.cs
- DataTableMapping.cs
- GenericEnumerator.cs
- MembershipSection.cs
- CollectionViewGroupInternal.cs
- ProgressiveCrcCalculatingStream.cs
- LinearQuaternionKeyFrame.cs
- StateFinalizationActivity.cs
- OdbcUtils.cs
- ResourceKey.cs
- MatrixStack.cs
- PanelStyle.cs
- MatrixTransform3D.cs
- ItemTypeToolStripMenuItem.cs
- CommentEmitter.cs
- TypeNameConverter.cs
- _ShellExpression.cs
- MemberJoinTreeNode.cs
- ContextMenuStrip.cs