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
- DebugInfoGenerator.cs
- DocumentPageHost.cs
- ComEventsMethod.cs
- RoutedEvent.cs
- CodePageEncoding.cs
- Style.cs
- PublisherMembershipCondition.cs
- ProcessHostConfigUtils.cs
- TrackingStringDictionary.cs
- DBNull.cs
- RijndaelManagedTransform.cs
- XmlIlTypeHelper.cs
- TextSimpleMarkerProperties.cs
- IncrementalReadDecoders.cs
- SafeArrayRankMismatchException.cs
- SafeIUnknown.cs
- XslCompiledTransform.cs
- VirtualPath.cs
- CqlIdentifiers.cs
- ServiceControllerDesigner.cs
- LabelTarget.cs
- CodeGeneratorOptions.cs
- SupportingTokenSpecification.cs
- Registration.cs
- METAHEADER.cs
- BlobPersonalizationState.cs
- UIElement.cs
- EntityDataSourceContextDisposingEventArgs.cs
- AssemblyName.cs
- DetailsViewInsertEventArgs.cs
- Int32.cs
- SqlFacetAttribute.cs
- CqlLexerHelpers.cs
- SoapFault.cs
- SqlHelper.cs
- Imaging.cs
- SimpleType.cs
- VariableElement.cs
- PrintDialog.cs
- SignHashRequest.cs
- TextElementEnumerator.cs
- LZCodec.cs
- MultitargetUtil.cs
- TaskDesigner.cs
- PropertyChangeTracker.cs
- GeometryHitTestParameters.cs
- DictionaryMarkupSerializer.cs
- SharedStream.cs
- BindingGroup.cs
- SmiEventSink_Default.cs
- SqlProfileProvider.cs
- TemplateKeyConverter.cs
- MbpInfo.cs
- IntranetCredentialPolicy.cs
- EmbeddedMailObjectsCollection.cs
- SplitContainer.cs
- FontNamesConverter.cs
- QuotaExceededException.cs
- AppLevelCompilationSectionCache.cs
- CodeNamespaceCollection.cs
- ParameterBuilder.cs
- SoapCodeExporter.cs
- CriticalHandle.cs
- DiscoveryExceptionDictionary.cs
- WebPartManager.cs
- XmlAttributeProperties.cs
- XmlSchemaSimpleContent.cs
- UnsafeNativeMethods.cs
- ListItemParagraph.cs
- EditorOptionAttribute.cs
- InvalidCastException.cs
- CodeDOMProvider.cs
- SamlDelegatingWriter.cs
- ExpressionNode.cs
- SpellCheck.cs
- XmlSchemaRedefine.cs
- GeometryModel3D.cs
- XmlILOptimizerVisitor.cs
- StringFormat.cs
- WebReferencesBuildProvider.cs
- FontUnit.cs
- ConfigurationSection.cs
- JsonReader.cs
- EmptyQuery.cs
- TextModifierScope.cs
- DateTimeOffsetAdapter.cs
- DataBoundControlDesigner.cs
- StandardTransformFactory.cs
- FrameSecurityDescriptor.cs
- PageAsyncTask.cs
- PrefixQName.cs
- ToolboxComponentsCreatingEventArgs.cs
- CodeComment.cs
- CodeIdentifiers.cs
- ControlValuePropertyAttribute.cs
- AutomationTextAttribute.cs
- SqlClientMetaDataCollectionNames.cs
- CompiledIdentityConstraint.cs
- RuleValidation.cs
- ProcessThread.cs