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
- ListBoxItemAutomationPeer.cs
- DataGridViewColumnDesigner.cs
- ClusterSafeNativeMethods.cs
- DaylightTime.cs
- DetailsViewRowCollection.cs
- DataGridToolTip.cs
- TabItem.cs
- CustomPopupPlacement.cs
- ComponentDesigner.cs
- CompositeKey.cs
- ContainerSelectorActiveEvent.cs
- SqlDuplicator.cs
- WebPartConnectionsCancelEventArgs.cs
- WebPartTransformer.cs
- ConfigurationProperty.cs
- ContractCodeDomInfo.cs
- ConstraintEnumerator.cs
- SpeechUI.cs
- InternalCache.cs
- OracleParameterBinding.cs
- TypePresenter.xaml.cs
- GrammarBuilder.cs
- InvalidAsynchronousStateException.cs
- StatusBarAutomationPeer.cs
- RSAOAEPKeyExchangeDeformatter.cs
- MetadataUtilsSmi.cs
- Propagator.JoinPropagator.cs
- PolyQuadraticBezierSegment.cs
- ISSmlParser.cs
- SoapWriter.cs
- XpsFontSerializationService.cs
- _FtpDataStream.cs
- SerializationInfoEnumerator.cs
- CodeMemberField.cs
- DesignerToolboxInfo.cs
- XmlBinaryReader.cs
- CollectionBuilder.cs
- XmlUtilWriter.cs
- SettingsPropertyCollection.cs
- SystemWebCachingSectionGroup.cs
- EntityParameterCollection.cs
- RequestCache.cs
- BasicViewGenerator.cs
- TabItemWrapperAutomationPeer.cs
- DodSequenceMerge.cs
- FullTrustAssembly.cs
- EncodingDataItem.cs
- ObjectSecurity.cs
- CapabilitiesSection.cs
- ProgressBarAutomationPeer.cs
- VolatileResourceManager.cs
- Rect.cs
- PriorityRange.cs
- GraphicsPathIterator.cs
- Int32CollectionValueSerializer.cs
- SqlDataSourceRefreshSchemaForm.cs
- LoadWorkflowAsyncResult.cs
- TextServicesPropertyRanges.cs
- X509Extension.cs
- DeclarativeConditionsCollection.cs
- DataGridViewCellStyleConverter.cs
- ConfigurationStrings.cs
- FileStream.cs
- StrokeNodeOperations.cs
- XmlSchemaSimpleTypeUnion.cs
- Content.cs
- XsdDataContractExporter.cs
- JulianCalendar.cs
- CheckBoxFlatAdapter.cs
- DrawingCollection.cs
- ListViewItem.cs
- CustomExpressionEventArgs.cs
- ResolveNameEventArgs.cs
- ForEachAction.cs
- SmiContext.cs
- ButtonField.cs
- MsmqAppDomainProtocolHandler.cs
- FlowSwitch.cs
- FacetValueContainer.cs
- RuleSettingsCollection.cs
- ScriptHandlerFactory.cs
- DataFieldConverter.cs
- GridViewUpdateEventArgs.cs
- InvokeMemberBinder.cs
- ListViewItemEventArgs.cs
- RootBuilder.cs
- EventLogWatcher.cs
- IResourceProvider.cs
- COM2TypeInfoProcessor.cs
- FormViewPageEventArgs.cs
- DiscardableAttribute.cs
- RawStylusSystemGestureInputReport.cs
- LinkedResourceCollection.cs
- XamlFrame.cs
- PEFileEvidenceFactory.cs
- XmlTypeAttribute.cs
- XmlAutoDetectWriter.cs
- XmlSchemaInfo.cs
- DictionaryEntry.cs
- HttpCacheParams.cs