Code:
/ FX-1434 / FX-1434 / 1.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
- _UriTypeConverter.cs
- GuidTagList.cs
- DefaultProxySection.cs
- BamlBinaryWriter.cs
- util.cs
- ClientScriptManager.cs
- EngineSiteSapi.cs
- PageAsyncTask.cs
- RectAnimationBase.cs
- VSWCFServiceContractGenerator.cs
- XmlCollation.cs
- Transform.cs
- MarkupExtensionParser.cs
- FontSizeConverter.cs
- StrongName.cs
- CodeMemberField.cs
- Automation.cs
- SplitterPanel.cs
- TargetConverter.cs
- ScrollEvent.cs
- CounterCreationDataCollection.cs
- ProvidersHelper.cs
- InlineObject.cs
- SystemColors.cs
- Style.cs
- JavaScriptSerializer.cs
- Header.cs
- HttpCacheParams.cs
- VisualTreeHelper.cs
- AffineTransform3D.cs
- MimeAnyImporter.cs
- DataServiceHostWrapper.cs
- AttachmentCollection.cs
- UrlUtility.cs
- ButtonField.cs
- ObjectDataSourceMethodEventArgs.cs
- _NTAuthentication.cs
- TrackingQuery.cs
- ControllableStoryboardAction.cs
- ListenerBinder.cs
- ObjectConverter.cs
- indexingfiltermarshaler.cs
- HMACRIPEMD160.cs
- _NTAuthentication.cs
- ListViewItemSelectionChangedEvent.cs
- QuotedPrintableStream.cs
- Claim.cs
- SafeHandles.cs
- BamlRecordReader.cs
- GiveFeedbackEvent.cs
- BaseTemplateCodeDomTreeGenerator.cs
- WebEventCodes.cs
- SmiRecordBuffer.cs
- XmlResolver.cs
- NetCodeGroup.cs
- CmsInterop.cs
- DataSourceSerializationException.cs
- CancelRequestedQuery.cs
- WebPartConnectionCollection.cs
- ProtocolsConfigurationEntry.cs
- SplineKeyFrames.cs
- URLMembershipCondition.cs
- tooltip.cs
- DecoratedNameAttribute.cs
- Attribute.cs
- DataKeyArray.cs
- PathGradientBrush.cs
- SqlDataSource.cs
- WindowsToolbar.cs
- SecurityRuntime.cs
- UndoEngine.cs
- EventEntry.cs
- StickyNote.cs
- Lease.cs
- StaticSiteMapProvider.cs
- TabControlEvent.cs
- InheritablePropertyChangeInfo.cs
- IgnoreFlushAndCloseStream.cs
- ReflectPropertyDescriptor.cs
- EndpointConfigContainer.cs
- StyleSelector.cs
- QuarticEase.cs
- XmlDataCollection.cs
- SerializationEventsCache.cs
- Menu.cs
- SplitterEvent.cs
- ExpressionConverter.cs
- CancellationHandler.cs
- ParserStreamGeometryContext.cs
- SafeHandle.cs
- CardSpaceShim.cs
- DbMetaDataFactory.cs
- GridViewUpdatedEventArgs.cs
- RangeBaseAutomationPeer.cs
- LazyLoadBehavior.cs
- IDictionary.cs
- RenamedEventArgs.cs
- Menu.cs
- COM2ExtendedTypeConverter.cs
- Stroke.cs