Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- PageContent.cs
- pingexception.cs
- FaultHandlingFilter.cs
- ResourceContainerWrapper.cs
- TrackBarRenderer.cs
- FileLogRecordHeader.cs
- ScrollProviderWrapper.cs
- XmlComment.cs
- EventSetter.cs
- _ConnectOverlappedAsyncResult.cs
- InternalCache.cs
- TextParagraph.cs
- SmiRecordBuffer.cs
- ZoneIdentityPermission.cs
- TypeDescriptor.cs
- ContentAlignmentEditor.cs
- BCLDebug.cs
- DisplayNameAttribute.cs
- RadioButtonAutomationPeer.cs
- ReflectPropertyDescriptor.cs
- ServerValidateEventArgs.cs
- FlowDocumentFormatter.cs
- GeneralTransformGroup.cs
- StorageModelBuildProvider.cs
- StoryFragments.cs
- KeyValuePair.cs
- DataViewSetting.cs
- LeaseManager.cs
- ListDictionaryInternal.cs
- ProgressBar.cs
- CompositeFontParser.cs
- DataTableTypeConverter.cs
- DrawingContextWalker.cs
- StaticExtension.cs
- Model3DGroup.cs
- EntityDataSourceUtil.cs
- ClickablePoint.cs
- HtmlInputButton.cs
- AnimationException.cs
- EntityContainer.cs
- DataGrid.cs
- ToolStripLabel.cs
- ProvideValueServiceProvider.cs
- OperationContextScope.cs
- ping.cs
- WebScriptServiceHostFactory.cs
- UnsafeNativeMethods.cs
- PaperSize.cs
- UnitySerializationHolder.cs
- ConfigurationValidatorBase.cs
- ComponentChangingEvent.cs
- MarkupWriter.cs
- OneOf.cs
- CellIdBoolean.cs
- EventLogEntry.cs
- DefaultValueAttribute.cs
- StatusBarItem.cs
- ContentElementAutomationPeer.cs
- XmlChildNodes.cs
- ObjectReaderCompiler.cs
- FormsAuthenticationModule.cs
- SqlTriggerAttribute.cs
- TreeView.cs
- BrowserCapabilitiesCompiler.cs
- FileIOPermission.cs
- CacheOutputQuery.cs
- XmlStreamNodeWriter.cs
- ClaimTypes.cs
- SerializableAttribute.cs
- DataSvcMapFileSerializer.cs
- TextureBrush.cs
- DrawListViewItemEventArgs.cs
- XmlDataSourceDesigner.cs
- UdpReplyToBehavior.cs
- XmlSchemaSequence.cs
- InsufficientExecutionStackException.cs
- StaticFileHandler.cs
- HiddenFieldPageStatePersister.cs
- ScrollBar.cs
- AnimationClock.cs
- DataGridViewAccessibleObject.cs
- DeferredElementTreeState.cs
- Message.cs
- ADRoleFactory.cs
- GridItemProviderWrapper.cs
- _StreamFramer.cs
- ErrorFormatter.cs
- UserPreferenceChangedEventArgs.cs
- OracleDateTime.cs
- SmtpDigestAuthenticationModule.cs
- ReceiveErrorHandling.cs
- HelloMessageApril2005.cs
- Inflater.cs
- DataGridRow.cs
- WebPartEditVerb.cs
- URLIdentityPermission.cs
- ResourceReferenceExpression.cs
- TableLayoutPanel.cs
- UpdateCommandGenerator.cs
- XPathCompileException.cs