Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- ListComponentEditorPage.cs
- WaitHandleCannotBeOpenedException.cs
- CodeTypeReferenceCollection.cs
- ThumbButtonInfoCollection.cs
- ProfileWorkflowElement.cs
- TraceSection.cs
- BitmapEffectDrawingContextState.cs
- Paragraph.cs
- ToolStripArrowRenderEventArgs.cs
- WmlImageAdapter.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- Property.cs
- IpcChannelHelper.cs
- WindowsFont.cs
- ConfigurationSectionGroupCollection.cs
- Utils.cs
- PaginationProgressEventArgs.cs
- QilIterator.cs
- FixedDocumentPaginator.cs
- StdRegProviderWrapper.cs
- HideDisabledControlAdapter.cs
- TextModifier.cs
- Version.cs
- SafeIUnknown.cs
- LineBreak.cs
- ProfileEventArgs.cs
- HighlightVisual.cs
- EventProvider.cs
- DataGridViewAccessibleObject.cs
- MergeLocalizationDirectives.cs
- DtrList.cs
- ReadWriteSpinLock.cs
- StopStoryboard.cs
- DoubleKeyFrameCollection.cs
- SchemaExporter.cs
- XmlUnspecifiedAttribute.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- SchemaNamespaceManager.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- SynchronizationLockException.cs
- ProviderIncompatibleException.cs
- BrowserCapabilitiesCodeGenerator.cs
- DeclarationUpdate.cs
- TypeForwardedToAttribute.cs
- ConnectionStringSettings.cs
- PairComparer.cs
- SHA384Managed.cs
- DataGridViewRowCancelEventArgs.cs
- Run.cs
- CLRBindingWorker.cs
- PolyBezierSegment.cs
- ImageSource.cs
- AsmxEndpointPickerExtension.cs
- DataControlPagerLinkButton.cs
- ComIntegrationManifestGenerator.cs
- Permission.cs
- SmtpMail.cs
- NestedContainer.cs
- DataGridColumnHeaderAutomationPeer.cs
- DataGridViewHeaderCell.cs
- MatrixKeyFrameCollection.cs
- EntityAdapter.cs
- CSharpCodeProvider.cs
- WarningException.cs
- ObjectStateFormatter.cs
- mediaeventargs.cs
- IsolatedStorageException.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- TraceListener.cs
- DayRenderEvent.cs
- ProfilePropertySettings.cs
- SelectiveScrollingGrid.cs
- DefaultClaimSet.cs
- LayoutUtils.cs
- Config.cs
- CustomCategoryAttribute.cs
- SiteMapProvider.cs
- QueryResponse.cs
- ServiceRoute.cs
- GlobalProxySelection.cs
- XamlGridLengthSerializer.cs
- TextSpanModifier.cs
- CodeTypeReference.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ModulesEntry.cs
- AddInActivator.cs
- DataKeyArray.cs
- XsltSettings.cs
- GridViewUpdatedEventArgs.cs
- FileUtil.cs
- dtdvalidator.cs
- DataMisalignedException.cs
- MailMessage.cs
- AudioSignalProblemOccurredEventArgs.cs
- DebugHandleTracker.cs
- ModelTreeEnumerator.cs
- ConfigDefinitionUpdates.cs
- SrgsToken.cs
- ConfigurationStrings.cs
- Visual3D.cs