Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Cache / SRef.cs / 1305376 / SRef.cs
using System; using System.Globalization; using System.Reflection; using System.Security.Permissions; using System.Web; namespace System.Web.Caching { internal class SRef { private static Type s_type = Type.GetType("System.SizedReference", true, false); private Object _sizedRef; internal SRef(Object target) { _sizedRef = HttpRuntime.CreateNonPublicInstance(s_type, new object[] {target}); } internal long ApproximateSize { [PermissionSet(SecurityAction.Assert, Unrestricted=true)] get { object o = s_type.InvokeMember("ApproximateSize", BindingFlags.Public | BindingFlags.Instance | BindingFlags.GetProperty, null, // binder _sizedRef, // target null, // args CultureInfo.InvariantCulture); return (long) o; } } [PermissionSet(SecurityAction.Assert, Unrestricted=true)] internal void Dispose() { s_type.InvokeMember("Dispose", BindingFlags.Public | BindingFlags.Instance | BindingFlags.InvokeMethod, null, // binder _sizedRef, // target null, // args CultureInfo.InvariantCulture); } } } // 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
- DescendentsWalker.cs
- GraphicsPathIterator.cs
- XhtmlBasicFormAdapter.cs
- RuleSettingsCollection.cs
- ButtonBase.cs
- PrefixHandle.cs
- ExceptionUtil.cs
- AssociationType.cs
- ToolbarAUtomationPeer.cs
- XPathPatternParser.cs
- TraceListener.cs
- AssociatedControlConverter.cs
- ComplexBindingPropertiesAttribute.cs
- Subtree.cs
- ServiceSecurityAuditBehavior.cs
- EmptyControlCollection.cs
- ConfigurationProperty.cs
- QilStrConcatenator.cs
- ColumnReorderedEventArgs.cs
- SmtpException.cs
- VectorValueSerializer.cs
- RadioButtonDesigner.cs
- DataControlImageButton.cs
- storagemappingitemcollection.viewdictionary.cs
- ThrowOnMultipleAssignment.cs
- TimerEventSubscription.cs
- ButtonFieldBase.cs
- SQLByte.cs
- LostFocusEventManager.cs
- CommandBindingCollection.cs
- StringDictionary.cs
- AlphabetConverter.cs
- AssemblyEvidenceFactory.cs
- CodeChecksumPragma.cs
- WmiInstallComponent.cs
- StickyNoteAnnotations.cs
- PreloadedPackages.cs
- RectangleHotSpot.cs
- PresentationTraceSources.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- CategoryAttribute.cs
- RegexCode.cs
- DiscoveryDocumentSerializer.cs
- TypeContext.cs
- ComponentChangedEvent.cs
- SrgsRulesCollection.cs
- NonParentingControl.cs
- RuleElement.cs
- VariableQuery.cs
- ErrorEventArgs.cs
- PropertyDescriptorGridEntry.cs
- PairComparer.cs
- SqlVersion.cs
- SchemaInfo.cs
- M3DUtil.cs
- DefaultSerializationProviderAttribute.cs
- Debug.cs
- FramingDecoders.cs
- WebException.cs
- SkipStoryboardToFill.cs
- GlyphsSerializer.cs
- _RequestLifetimeSetter.cs
- ManipulationDeltaEventArgs.cs
- XmlQueryOutput.cs
- OdbcInfoMessageEvent.cs
- AsyncOperationManager.cs
- LogSwitch.cs
- SQLRoleProvider.cs
- TypeConverterHelper.cs
- ListDesigner.cs
- CachedFontFamily.cs
- PrintEvent.cs
- ToolstripProfessionalRenderer.cs
- PointLightBase.cs
- EntitySqlQueryCacheEntry.cs
- SecurityKeyIdentifierClause.cs
- BaseCollection.cs
- SapiGrammar.cs
- Timer.cs
- control.ime.cs
- UdpDiscoveryEndpointElement.cs
- SynchronizedDispatch.cs
- TextElementEnumerator.cs
- StringFunctions.cs
- CompilationLock.cs
- BamlLocalizer.cs
- StaticFileHandler.cs
- ElementNotAvailableException.cs
- SingleKeyFrameCollection.cs
- MergeEnumerator.cs
- ELinqQueryState.cs
- PropertyEmitterBase.cs
- HttpPostedFile.cs
- TextBoxLine.cs
- CodeArrayCreateExpression.cs
- SQLSingleStorage.cs
- ConfigurationLocation.cs
- DataGridViewRowsAddedEventArgs.cs
- OleDbRowUpdatingEvent.cs
- Baml6Assembly.cs