Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- PresentationTraceSources.cs
- HideDisabledControlAdapter.cs
- TextPatternIdentifiers.cs
- EventMetadata.cs
- DataViewManager.cs
- DesignerActionMethodItem.cs
- MdbDataFileEditor.cs
- WindowsSolidBrush.cs
- SchemaDeclBase.cs
- ConstNode.cs
- InstalledFontCollection.cs
- GradientStop.cs
- MatrixAnimationBase.cs
- XmlCharCheckingWriter.cs
- FormsAuthenticationUser.cs
- XPathNode.cs
- DoubleAnimationClockResource.cs
- CurrentTimeZone.cs
- WindowsListViewSubItem.cs
- EventPropertyMap.cs
- SizeIndependentAnimationStorage.cs
- Hashtable.cs
- ListViewItem.cs
- Timer.cs
- SmtpLoginAuthenticationModule.cs
- TreeViewItemAutomationPeer.cs
- ExpressionBuilderContext.cs
- EnvironmentPermission.cs
- Matrix.cs
- Menu.cs
- SafeLibraryHandle.cs
- ValidationRuleCollection.cs
- MemberDescriptor.cs
- WeakReferenceKey.cs
- MimeMapping.cs
- HtmlButton.cs
- FramingFormat.cs
- SimpleRecyclingCache.cs
- Line.cs
- CharUnicodeInfo.cs
- DataGridRowsPresenter.cs
- TypeRestriction.cs
- DataGridViewCellMouseEventArgs.cs
- GeometryValueSerializer.cs
- DeviceSpecificChoiceCollection.cs
- XComponentModel.cs
- httpapplicationstate.cs
- PasswordBox.cs
- ContentFileHelper.cs
- HtmlLink.cs
- SiteMapDesignerDataSourceView.cs
- DrawingCollection.cs
- WindowCollection.cs
- StylusPointPropertyInfo.cs
- Vector3DConverter.cs
- TitleStyle.cs
- ScalarType.cs
- IteratorFilter.cs
- MailWebEventProvider.cs
- AttributeConverter.cs
- RegexMatchCollection.cs
- TargetException.cs
- WebPartDescription.cs
- ArraySegment.cs
- UnsafeNativeMethodsCLR.cs
- sortedlist.cs
- MetadataUtilsSmi.cs
- WebPartConnectVerb.cs
- ToolboxItemSnapLineBehavior.cs
- Rules.cs
- pingexception.cs
- CssTextWriter.cs
- WindowsListBox.cs
- EntityParameterCollection.cs
- XamlSerializationHelper.cs
- SystemFonts.cs
- UiaCoreApi.cs
- SQLDecimalStorage.cs
- Math.cs
- AppendHelper.cs
- DoubleLinkListEnumerator.cs
- PrtCap_Public.cs
- StructureChangedEventArgs.cs
- ProcessModelInfo.cs
- AsyncPostBackTrigger.cs
- ThicknessAnimation.cs
- SmtpTransport.cs
- WorkflowWebHostingModule.cs
- SqlColumnizer.cs
- VisualStyleElement.cs
- OperationCanceledException.cs
- NameValuePair.cs
- XmlDeclaration.cs
- dataSvcMapFileLoader.cs
- EventLogPermissionHolder.cs
- NamespaceList.cs
- PageParser.cs
- EditBehavior.cs
- HtmlEncodedRawTextWriter.cs
- CloudCollection.cs