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
- QueryOutputWriter.cs
- SqlRetyper.cs
- AutomationElementCollection.cs
- Stacktrace.cs
- ApplicationFileParser.cs
- SqlCacheDependencySection.cs
- StatusBarDrawItemEvent.cs
- TableStyle.cs
- COM2AboutBoxPropertyDescriptor.cs
- LineServices.cs
- HelpEvent.cs
- CaseInsensitiveComparer.cs
- XPathDocumentNavigator.cs
- Object.cs
- CapabilitiesUse.cs
- UserControlParser.cs
- MenuCommandService.cs
- LogFlushAsyncResult.cs
- CustomWebEventKey.cs
- CodeAttributeDeclarationCollection.cs
- MobileFormsAuthentication.cs
- StylusOverProperty.cs
- Knowncolors.cs
- EntityKey.cs
- PropertyToken.cs
- DependencyObjectPropertyDescriptor.cs
- PageSetupDialog.cs
- XXXInfos.cs
- GraphicsContainer.cs
- WrapPanel.cs
- UIntPtr.cs
- ExceptionRoutedEventArgs.cs
- DockPattern.cs
- ToolStripDropDownDesigner.cs
- Control.cs
- HttpResponse.cs
- WorkflowShape.cs
- ResourceAssociationSet.cs
- TimeSpan.cs
- DrawingContextFlattener.cs
- CollectionsUtil.cs
- WorkBatch.cs
- ListView.cs
- MailDefinition.cs
- Win32MouseDevice.cs
- CustomErrorsSection.cs
- DataPagerCommandEventArgs.cs
- IntSecurity.cs
- XmlSchemaSimpleTypeUnion.cs
- PrintDialog.cs
- MailDefinitionBodyFileNameEditor.cs
- figurelength.cs
- SystemWebExtensionsSectionGroup.cs
- InlinedAggregationOperatorEnumerator.cs
- SystemIPGlobalProperties.cs
- CustomDictionarySources.cs
- XNameTypeConverter.cs
- ReturnValue.cs
- XmlDataSource.cs
- XmlWrappingReader.cs
- log.cs
- UserControl.cs
- ActivityTypeCodeDomSerializer.cs
- CommonGetThemePartSize.cs
- XmlSchemaValidationException.cs
- StringCollectionMarkupSerializer.cs
- X509CertificateChain.cs
- HttpConfigurationContext.cs
- BitmapCache.cs
- ReachDocumentReferenceSerializerAsync.cs
- RelatedView.cs
- WindowsFormsHostAutomationPeer.cs
- UIElement3DAutomationPeer.cs
- WebContext.cs
- ColumnReorderedEventArgs.cs
- WorkflowRuntime.cs
- Int32Rect.cs
- XmlWriterSettings.cs
- TemplateInstanceAttribute.cs
- StringValueConverter.cs
- TraceSwitch.cs
- EntityCommand.cs
- TreeNodeBindingCollection.cs
- NumericUpDownAcceleration.cs
- QilReplaceVisitor.cs
- SignedInfo.cs
- Int16AnimationBase.cs
- base64Transforms.cs
- ValidatedControlConverter.cs
- ColumnPropertiesGroup.cs
- RequestCachePolicy.cs
- ValidationSummary.cs
- CoreSwitches.cs
- Command.cs
- XPathNavigatorReader.cs
- MenuCommand.cs
- RowCache.cs
- Publisher.cs
- HttpInputStream.cs
- SettingsPropertyIsReadOnlyException.cs