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
- CodeDirectiveCollection.cs
- PrintControllerWithStatusDialog.cs
- PersistenceTask.cs
- AutomationPattern.cs
- PriorityRange.cs
- ByteStack.cs
- VisualBasicExpressionConverter.cs
- QueryStringParameter.cs
- TreeNodeSelectionProcessor.cs
- Triangle.cs
- BamlLocalizationDictionary.cs
- SafeNativeMethodsOther.cs
- FormViewRow.cs
- ToolBarOverflowPanel.cs
- SerialErrors.cs
- HebrewCalendar.cs
- ResourceManagerWrapper.cs
- RawStylusInputReport.cs
- WebPartsPersonalizationAuthorization.cs
- SafeFileMappingHandle.cs
- RegexReplacement.cs
- Events.cs
- ServerProtocol.cs
- TextEndOfSegment.cs
- KeyboardEventArgs.cs
- TableRowGroupCollection.cs
- RedirectionProxy.cs
- CookieHandler.cs
- CommentEmitter.cs
- ValuePattern.cs
- FrameworkReadOnlyPropertyMetadata.cs
- EventLogWatcher.cs
- ZoneIdentityPermission.cs
- XmlSchemaSimpleTypeRestriction.cs
- RowUpdatedEventArgs.cs
- ImageSourceValueSerializer.cs
- TextEditorMouse.cs
- SocketConnection.cs
- ListItemParagraph.cs
- GestureRecognitionResult.cs
- SqlDataSourceFilteringEventArgs.cs
- MemberDomainMap.cs
- PropVariant.cs
- PrintEvent.cs
- XmlConverter.cs
- TypeSemantics.cs
- SupportingTokenProviderSpecification.cs
- TextPenaltyModule.cs
- SelectionWordBreaker.cs
- ProviderBase.cs
- SizeAnimation.cs
- DataStorage.cs
- WebPartConnectionCollection.cs
- GridLength.cs
- ObjectTypeMapping.cs
- RowVisual.cs
- DocumentStatusResources.cs
- Track.cs
- CultureTableRecord.cs
- DropTarget.cs
- XpsFontSubsetter.cs
- TraceHandlerErrorFormatter.cs
- WebPartConnectionsConnectVerb.cs
- BitmapEffectGroup.cs
- RuleRef.cs
- EventLogPermissionEntry.cs
- WebBrowserBase.cs
- WebPartRestoreVerb.cs
- DiagnosticsConfiguration.cs
- WebPartUtil.cs
- PageThemeBuildProvider.cs
- SqlVersion.cs
- ISSmlParser.cs
- DataGridTextBoxColumn.cs
- WindowsPrincipal.cs
- HtmlInputCheckBox.cs
- CompositeCollection.cs
- ToolStripDropTargetManager.cs
- DocumentPaginator.cs
- Constants.cs
- ConstrainedDataObject.cs
- CharAnimationUsingKeyFrames.cs
- ContentHostHelper.cs
- Triangle.cs
- IncrementalHitTester.cs
- DataStreamFromComStream.cs
- UserMapPath.cs
- CmsInterop.cs
- Claim.cs
- _WinHttpWebProxyDataBuilder.cs
- RichTextBoxConstants.cs
- ExcCanonicalXml.cs
- OneOf.cs
- ToolboxComponentsCreatingEventArgs.cs
- WindowsPrincipal.cs
- CTreeGenerator.cs
- XmlSchemaValidationException.cs
- GridItem.cs
- ImageConverter.cs
- DBSqlParserColumnCollection.cs