Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Security / Policy / GAC.cs / 1 / 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)] sealed public class GacInstalled : IIdentityPermissionFactory, IBuiltInEvidence { public GacInstalled() { } public IPermission CreateIdentityPermission( Evidence evidence ) { return new GacIdentityPermission(); } public override bool Equals(Object o) { if (o is GacInstalled) return true; return false; } public override int GetHashCode() { return 0; } public Object Copy() { return new GacInstalled(); } internal SecurityElement ToXml() { SecurityElement elem = new SecurityElement( this.GetType().FullName ); elem.AddAttribute( "version", "1" ); return elem; } ///int IBuiltInEvidence.OutputToBuffer( char[] buffer, int position, bool verbose ) { buffer[position] = BuiltInEvidenceHelper.idGac; return position + 1; } /// int IBuiltInEvidence.GetRequiredSize(bool verbose) { return 1; } /// int IBuiltInEvidence.InitFromBuffer( char[] buffer, int position ) { return position; } public override String ToString() { return ToXml().ToString(); } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DispatchWrapper.cs
- uribuilder.cs
- SourceLocationProvider.cs
- MetadataItemCollectionFactory.cs
- EmbeddedObject.cs
- SerializerProvider.cs
- Qualifier.cs
- OrderedDictionaryStateHelper.cs
- ImageResources.Designer.cs
- CompilerLocalReference.cs
- XmlChoiceIdentifierAttribute.cs
- SelectedGridItemChangedEvent.cs
- GridViewAutomationPeer.cs
- CleanUpVirtualizedItemEventArgs.cs
- SplitterPanel.cs
- SectionVisual.cs
- GeometryGroup.cs
- XmlSubtreeReader.cs
- InputScope.cs
- InstanceDataCollection.cs
- EntityContainerEmitter.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- SettingsProperty.cs
- WindowsAuthenticationModule.cs
- XPathSelfQuery.cs
- ToolStripPanelRenderEventArgs.cs
- NumberSubstitution.cs
- XmlMtomWriter.cs
- PKCS1MaskGenerationMethod.cs
- ExpressionBinding.cs
- NameNode.cs
- DeclarationUpdate.cs
- DataGridItemCollection.cs
- FontDifferentiator.cs
- BitmapSource.cs
- AppSettingsSection.cs
- KeysConverter.cs
- UndirectedGraph.cs
- TypeConverterValueSerializer.cs
- VisualBrush.cs
- StoreItemCollection.Loader.cs
- PageVisual.cs
- recordstatescratchpad.cs
- SQLByte.cs
- ParserContext.cs
- SwitchLevelAttribute.cs
- ReceiveReply.cs
- ComponentEditorPage.cs
- URI.cs
- dbdatarecord.cs
- XamlFilter.cs
- AsyncCompletedEventArgs.cs
- FlagsAttribute.cs
- WebPartConnectionCollection.cs
- BaseCAMarshaler.cs
- LabelLiteral.cs
- MSG.cs
- GregorianCalendar.cs
- RouteTable.cs
- BitmapEffectInput.cs
- ReadOnlyDictionary.cs
- OleDbDataAdapter.cs
- PrintingPermissionAttribute.cs
- WorkflowPersistenceService.cs
- RemotingClientProxy.cs
- HighlightComponent.cs
- HtmlUtf8RawTextWriter.cs
- RightsManagementInformation.cs
- CompressStream.cs
- PolicyReader.cs
- Queue.cs
- ListViewPagedDataSource.cs
- EditorPartCollection.cs
- EasingKeyFrames.cs
- PassportAuthenticationEventArgs.cs
- XmlQueryOutput.cs
- GridItemCollection.cs
- FileClassifier.cs
- SmiMetaDataProperty.cs
- X509CertificateRecipientServiceCredential.cs
- AnnotationService.cs
- ButtonAutomationPeer.cs
- SiteMapNodeItemEventArgs.cs
- ZipIOExtraFieldPaddingElement.cs
- DocumentViewerConstants.cs
- SimpleApplicationHost.cs
- DeviceSpecific.cs
- MenuItemCollection.cs
- Cursor.cs
- OperandQuery.cs
- TypeViewSchema.cs
- InheritedPropertyChangedEventArgs.cs
- DataGridViewImageCell.cs
- ExtendedProperty.cs
- PostBackOptions.cs
- PriorityBinding.cs
- MessageFormatterConverter.cs
- InstanceCollisionException.cs
- TdsParserStateObject.cs
- BamlMapTable.cs