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
- ValueSerializer.cs
- HtmlAnchor.cs
- handlecollector.cs
- TemplateBindingExpressionConverter.cs
- XPathCompiler.cs
- InvalidWMPVersionException.cs
- _HeaderInfo.cs
- GlyphsSerializer.cs
- UnsafeNativeMethodsTablet.cs
- InvalidOperationException.cs
- CommentEmitter.cs
- ServicesUtilities.cs
- DeploymentSection.cs
- ResourceDisplayNameAttribute.cs
- ProbeMatchesMessage11.cs
- WasEndpointConfigContainer.cs
- ContextQuery.cs
- EmptyQuery.cs
- MobileCapabilities.cs
- DBParameter.cs
- SqlWriter.cs
- Psha1DerivedKeyGeneratorHelper.cs
- DockPattern.cs
- SpnEndpointIdentityExtension.cs
- SByte.cs
- HttpContextBase.cs
- HtmlTableRowCollection.cs
- MetabaseServerConfig.cs
- OutputCacheSettings.cs
- UInt32Storage.cs
- PathGradientBrush.cs
- ProviderBase.cs
- XmlSchemaSimpleTypeUnion.cs
- TranslateTransform.cs
- QuaternionAnimationUsingKeyFrames.cs
- DesignerDataView.cs
- DataControlFieldCollection.cs
- DbFunctionCommandTree.cs
- ScalarConstant.cs
- EventSetter.cs
- ParseNumbers.cs
- GraphicsContainer.cs
- ButtonStandardAdapter.cs
- TTSEvent.cs
- ExtendedPropertyInfo.cs
- MergePropertyDescriptor.cs
- ACE.cs
- PanelStyle.cs
- EventlogProvider.cs
- RtfToken.cs
- oledbmetadatacollectionnames.cs
- AuthenticationConfig.cs
- IdentifierService.cs
- ResourceReader.cs
- RewritingValidator.cs
- BrushProxy.cs
- unsafeIndexingFilterStream.cs
- RawTextInputReport.cs
- BaseProcessor.cs
- ObjectHelper.cs
- HelpHtmlBuilder.cs
- XmlSchemaAnnotation.cs
- IResourceProvider.cs
- PerfProviderCollection.cs
- xml.cs
- ApplicationException.cs
- IImplicitResourceProvider.cs
- DispatcherFrame.cs
- unsafenativemethodsother.cs
- SplitterCancelEvent.cs
- Propagator.JoinPropagator.cs
- AncestorChangedEventArgs.cs
- ReflectionServiceProvider.cs
- ProfileSettingsCollection.cs
- PackWebRequestFactory.cs
- Stopwatch.cs
- LinkConverter.cs
- RelationshipNavigation.cs
- CompressStream.cs
- sqlinternaltransaction.cs
- InputProcessorProfilesLoader.cs
- StorageTypeMapping.cs
- MenuItem.cs
- ConnectionProviderAttribute.cs
- SafeSecurityHelper.cs
- ComboBoxDesigner.cs
- Timer.cs
- WebPartConnection.cs
- GroupStyle.cs
- OdbcDataAdapter.cs
- Polygon.cs
- ProxyFragment.cs
- SQLRoleProvider.cs
- AnnouncementService.cs
- HeaderPanel.cs
- COAUTHINFO.cs
- SByte.cs
- DurationConverter.cs
- TiffBitmapEncoder.cs
- RtfToXamlLexer.cs