Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EncoderParameter.cs
- HttpWebRequestElement.cs
- TrustManagerMoreInformation.cs
- Trace.cs
- FontFamilyConverter.cs
- HashAlgorithm.cs
- DependencySource.cs
- StreamReader.cs
- CreateUserWizard.cs
- WebScriptEnablingBehavior.cs
- DataMemberListEditor.cs
- GenerateHelper.cs
- ConfigXmlText.cs
- Rotation3DAnimation.cs
- SqlConnectionPoolGroupProviderInfo.cs
- ProfileSettings.cs
- FontStretchConverter.cs
- XmlSchema.cs
- CustomTypeDescriptor.cs
- LinqDataSourceStatusEventArgs.cs
- Partitioner.cs
- BitmapEffectDrawing.cs
- SingleStorage.cs
- Double.cs
- ProfileManager.cs
- ValidatedMobileControlConverter.cs
- SessionStateModule.cs
- TableStyle.cs
- TreeNodeClickEventArgs.cs
- CodeDirectionExpression.cs
- GacUtil.cs
- ToolStripContainer.cs
- cookieexception.cs
- TreeViewEvent.cs
- SystemBrushes.cs
- TypeName.cs
- bindurihelper.cs
- CaseInsensitiveOrdinalStringComparer.cs
- Helpers.cs
- CodeTypeConstructor.cs
- ScopelessEnumAttribute.cs
- XmlSchemaObjectTable.cs
- NavigateEvent.cs
- XmlExceptionHelper.cs
- SQLStringStorage.cs
- WebContentFormatHelper.cs
- ColumnTypeConverter.cs
- ISessionStateStore.cs
- AsyncSerializedWorker.cs
- InternalControlCollection.cs
- ResourceDescriptionAttribute.cs
- DecimalConverter.cs
- SystemIPv4InterfaceProperties.cs
- RegistrationServices.cs
- Visitor.cs
- ThreadNeutralSemaphore.cs
- CommandHelpers.cs
- BaseAsyncResult.cs
- ReflectionUtil.cs
- HtmlContainerControl.cs
- HandlerMappingMemo.cs
- DesignTimeData.cs
- SqlGenerator.cs
- PackageStore.cs
- CompiledIdentityConstraint.cs
- SliderAutomationPeer.cs
- ServiceModelSectionGroup.cs
- EntityDescriptor.cs
- SwitchLevelAttribute.cs
- DataRelationPropertyDescriptor.cs
- PrimarySelectionAdorner.cs
- SetUserLanguageRequest.cs
- Table.cs
- InlineCategoriesDocument.cs
- SessionStateContainer.cs
- HttpException.cs
- BitArray.cs
- Visual3DCollection.cs
- PipeSecurity.cs
- HttpValueCollection.cs
- SchemaTypeEmitter.cs
- GlobalEventManager.cs
- DataGridViewBindingCompleteEventArgs.cs
- CopyAttributesAction.cs
- MachinePropertyVariants.cs
- HtmlControl.cs
- DataServiceQuery.cs
- EncoderNLS.cs
- ReferenceConverter.cs
- Matrix3DConverter.cs
- Ops.cs
- AspNetPartialTrustHelpers.cs
- TraceFilter.cs
- CapabilitiesUse.cs
- localization.cs
- Matrix.cs
- RadioButton.cs
- FacetEnabledSchemaElement.cs
- PasswordTextContainer.cs
- ReflectionPermission.cs