Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 : [....] 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
- ConsoleCancelEventArgs.cs
- XmlSchemaComplexType.cs
- TextTreeText.cs
- ReferenceSchema.cs
- VirtualizingPanel.cs
- ConfigurationLocation.cs
- _IPv6Address.cs
- dtdvalidator.cs
- DefaultValueTypeConverter.cs
- DbExpressionBuilder.cs
- SqlFunctionAttribute.cs
- ModelItemDictionaryImpl.cs
- SupportingTokenAuthenticatorSpecification.cs
- SimpleWebHandlerParser.cs
- SmtpSection.cs
- IconBitmapDecoder.cs
- SettingsProperty.cs
- EnumType.cs
- DataRecordInfo.cs
- GregorianCalendarHelper.cs
- SamlSubjectStatement.cs
- ButtonColumn.cs
- Profiler.cs
- ApplicationInfo.cs
- XPathDocumentIterator.cs
- DatagridviewDisplayedBandsData.cs
- AppSettingsExpressionBuilder.cs
- MetafileHeader.cs
- DBCommand.cs
- TreeViewImageKeyConverter.cs
- XmlIgnoreAttribute.cs
- StsCommunicationException.cs
- SinglePageViewer.cs
- TypeBuilder.cs
- WorkflowMessageEventHandler.cs
- ReadContentAsBinaryHelper.cs
- EnvelopedPkcs7.cs
- LabelAutomationPeer.cs
- ComplusEndpointConfigContainer.cs
- FormsIdentity.cs
- XmlUtil.cs
- InputReportEventArgs.cs
- BaseAsyncResult.cs
- KeyNotFoundException.cs
- ScriptingAuthenticationServiceSection.cs
- AlphaSortedEnumConverter.cs
- UserControl.cs
- InternalReceiveMessage.cs
- SoapCodeExporter.cs
- JavaScriptSerializer.cs
- AccessibilityHelperForXpWin2k3.cs
- XmlCodeExporter.cs
- EtwTrace.cs
- ModelTreeEnumerator.cs
- HwndProxyElementProvider.cs
- UnlockCardRequest.cs
- CallSite.cs
- ClientBuildManager.cs
- SubqueryRules.cs
- ConsoleTraceListener.cs
- ButtonPopupAdapter.cs
- HtmlElementErrorEventArgs.cs
- Tokenizer.cs
- DataSysAttribute.cs
- Point3D.cs
- DragStartedEventArgs.cs
- QueuePathDialog.cs
- NamespaceEmitter.cs
- XmlCharType.cs
- XmlQueryContext.cs
- WmlObjectListAdapter.cs
- FamilyTypeface.cs
- ReadContentAsBinaryHelper.cs
- __ConsoleStream.cs
- Variable.cs
- GradientStopCollection.cs
- TypeDescriptionProviderAttribute.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- ToolStripPanelSelectionGlyph.cs
- WpfGeneratedKnownTypes.cs
- FixedTextSelectionProcessor.cs
- Quad.cs
- EventLog.cs
- SetIndexBinder.cs
- ComponentEditorForm.cs
- CqlParserHelpers.cs
- RealProxy.cs
- SchemaElementDecl.cs
- SQLInt32Storage.cs
- ExclusiveCanonicalizationTransform.cs
- ColorDialog.cs
- XmlAutoDetectWriter.cs
- CallInfo.cs
- UnorderedHashRepartitionStream.cs
- StickyNoteContentControl.cs
- LiteralText.cs
- DesignerAttribute.cs
- MimeTypeMapper.cs
- x509utils.cs
- ObjectStateFormatter.cs