Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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(); } } } // 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)] 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(); } } } // 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
- IChannel.cs
- FixedPageProcessor.cs
- ImageListDesigner.cs
- IncrementalCompileAnalyzer.cs
- SerialPort.cs
- XmlDataSourceView.cs
- SizeF.cs
- RTTypeWrapper.cs
- SharedStatics.cs
- ConversionContext.cs
- AssertUtility.cs
- _SslSessionsCache.cs
- EndPoint.cs
- TargetPerspective.cs
- Pair.cs
- OrderedEnumerableRowCollection.cs
- WorkflowValidationFailedException.cs
- Selection.cs
- TransformerInfoCollection.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- WebPartConnectionsConnectVerb.cs
- ListViewInsertionMark.cs
- NumberSubstitution.cs
- WhileDesigner.xaml.cs
- ExtentJoinTreeNode.cs
- _Semaphore.cs
- DependencyPropertyKind.cs
- Registry.cs
- ElementFactory.cs
- WebPartConnectVerb.cs
- metadatamappinghashervisitor.cs
- MetabaseSettings.cs
- Transform3DCollection.cs
- AppAction.cs
- XmlStringTable.cs
- AttachInfo.cs
- CatalogPartCollection.cs
- IPHostEntry.cs
- Executor.cs
- CodeDomLocalizationProvider.cs
- XsltArgumentList.cs
- EntityKeyElement.cs
- ConstNode.cs
- CompilationUtil.cs
- XPathDocumentBuilder.cs
- TypeNameParser.cs
- TypeDescriptionProviderAttribute.cs
- VarRemapper.cs
- SourceItem.cs
- ContextMarshalException.cs
- SymmetricAlgorithm.cs
- BamlRecordHelper.cs
- DynamicArgumentDesigner.xaml.cs
- BindingGroup.cs
- AppDomainProtocolHandler.cs
- IdentityReference.cs
- MsmqInputChannelBase.cs
- ToolboxItemCollection.cs
- SimpleTextLine.cs
- SqlDataSourceEnumerator.cs
- ResourceSetExpression.cs
- TextOutput.cs
- Bitmap.cs
- SchemaImporterExtensionElement.cs
- AspCompat.cs
- HashCodeCombiner.cs
- SmtpNtlmAuthenticationModule.cs
- SelectionPatternIdentifiers.cs
- WebEventTraceProvider.cs
- HTMLTextWriter.cs
- EventSinkHelperWriter.cs
- XmlSchemaObject.cs
- KeyedHashAlgorithm.cs
- UnaryQueryOperator.cs
- PanelDesigner.cs
- TextTreeDeleteContentUndoUnit.cs
- UpdateTranslator.cs
- ResourceDisplayNameAttribute.cs
- RectIndependentAnimationStorage.cs
- ViewLoader.cs
- ZipIOModeEnforcingStream.cs
- NamedPermissionSet.cs
- ResourceReferenceExpressionConverter.cs
- QueryStatement.cs
- DatagridviewDisplayedBandsData.cs
- ClientRuntimeConfig.cs
- HostedTransportConfigurationManager.cs
- WindowsContainer.cs
- EnumDataContract.cs
- ToolStripPanelRenderEventArgs.cs
- BoolExpression.cs
- GraphicsPath.cs
- DataColumnCollection.cs
- SiteMapNode.cs
- UnsafeNativeMethodsCLR.cs
- TextLine.cs
- ItemList.cs
- Preprocessor.cs
- ListView.cs
- XmlWrappingReader.cs