Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Policy / GAC.cs / 1305376 / GAC.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //[....] // // // GacInstalled is an IIdentity representing whether or not an assembly is installed in the Gac // namespace System.Security.Policy { using System.Runtime.Remoting; using System; using System.Security; using System.Security.Util; using System.IO; using System.Collections; using GacIdentityPermission = System.Security.Permissions.GacIdentityPermission; using System.Runtime.CompilerServices; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public sealed class GacInstalled : EvidenceBase, IIdentityPermissionFactory { public GacInstalled() { } public IPermission CreateIdentityPermission( Evidence evidence ) { return new GacIdentityPermission(); } public override bool Equals(Object o) { return o is GacInstalled; } public override int GetHashCode() { return 0; } public override EvidenceBase Clone() { return new GacInstalled(); } public Object Copy() { return Clone(); } internal SecurityElement ToXml() { SecurityElement elem = new SecurityElement( this.GetType().FullName ); elem.AddAttribute( "version", "1" ); return elem; } public override String ToString() { return ToXml().ToString(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //[....] // // // GacInstalled is an IIdentity representing whether or not an assembly is installed in the Gac // namespace System.Security.Policy { using System.Runtime.Remoting; using System; using System.Security; using System.Security.Util; using System.IO; using System.Collections; using GacIdentityPermission = System.Security.Permissions.GacIdentityPermission; using System.Runtime.CompilerServices; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public sealed class GacInstalled : EvidenceBase, IIdentityPermissionFactory { public GacInstalled() { } public IPermission CreateIdentityPermission( Evidence evidence ) { return new GacIdentityPermission(); } public override bool Equals(Object o) { return o is GacInstalled; } public override int GetHashCode() { return 0; } public override EvidenceBase Clone() { return new GacInstalled(); } public Object Copy() { return Clone(); } internal SecurityElement ToXml() { SecurityElement elem = new SecurityElement( this.GetType().FullName ); elem.AddAttribute( "version", "1" ); return elem; } public override String ToString() { return ToXml().ToString(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TableRowCollection.cs
- AccessorTable.cs
- Line.cs
- SystemKeyConverter.cs
- DummyDataSource.cs
- CommandHelper.cs
- PropertyGrid.cs
- GlyphingCache.cs
- X509Chain.cs
- XmlAtomErrorReader.cs
- ItemsControlAutomationPeer.cs
- Confirm.cs
- DataSourceControl.cs
- XmlNamespaceManager.cs
- EditorPartChrome.cs
- AppDomainResourcePerfCounters.cs
- MouseGesture.cs
- RSAPKCS1SignatureFormatter.cs
- PtsHelper.cs
- TraceHandler.cs
- PermissionSetEnumerator.cs
- DataControlImageButton.cs
- SchemaTypeEmitter.cs
- PackageDigitalSignature.cs
- SamlAuthenticationClaimResource.cs
- CellTreeSimplifier.cs
- AssemblyAttributes.cs
- PolyLineSegment.cs
- XmlSchemaImporter.cs
- RandomDelaySendsAsyncResult.cs
- BindingMAnagerBase.cs
- TreeNodeCollectionEditor.cs
- QilPatternVisitor.cs
- WindowsServiceElement.cs
- PasswordTextNavigator.cs
- ListViewItemMouseHoverEvent.cs
- RealProxy.cs
- RayMeshGeometry3DHitTestResult.cs
- RayMeshGeometry3DHitTestResult.cs
- DtdParser.cs
- httpserverutility.cs
- ContentElementAutomationPeer.cs
- QilInvokeEarlyBound.cs
- ImportContext.cs
- _SingleItemRequestCache.cs
- DbgUtil.cs
- MiniModule.cs
- PropertyCondition.cs
- ChangePassword.cs
- XmlMtomWriter.cs
- SiteMap.cs
- ItemMap.cs
- RsaSecurityTokenAuthenticator.cs
- SubstitutionDesigner.cs
- VectorValueSerializer.cs
- AccessViolationException.cs
- MappingItemCollection.cs
- IncomingWebResponseContext.cs
- LocationSectionRecord.cs
- ValueProviderWrapper.cs
- SelectorAutomationPeer.cs
- ThreadAbortException.cs
- XmlExtensionFunction.cs
- SmtpMail.cs
- DocumentViewer.cs
- ExpandSegmentCollection.cs
- ResourceCategoryAttribute.cs
- BindingSource.cs
- LocationUpdates.cs
- ListViewHitTestInfo.cs
- Profiler.cs
- CacheMemory.cs
- UTF8Encoding.cs
- InvokeCompletedEventArgs.cs
- _TLSstream.cs
- _SafeNetHandles.cs
- ChangesetResponse.cs
- VectorCollection.cs
- controlskin.cs
- ProviderMetadata.cs
- InstanceContext.cs
- ScrollContentPresenter.cs
- StickyNoteAnnotations.cs
- Guid.cs
- FileCodeGroup.cs
- WebPartAuthorizationEventArgs.cs
- CheckBoxField.cs
- Brush.cs
- VirtualizedCellInfoCollection.cs
- NamespaceQuery.cs
- Part.cs
- ToolBarPanel.cs
- HtmlTableRow.cs
- Compiler.cs
- HttpWebRequestElement.cs
- DbDataSourceEnumerator.cs
- ListBoxItemWrapperAutomationPeer.cs
- ActivityExecutor.cs
- DispatchWrapper.cs
- HttpRuntimeSection.cs