Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- CookieProtection.cs
- OrderedParallelQuery.cs
- QilInvokeEarlyBound.cs
- SpecularMaterial.cs
- UTF32Encoding.cs
- KeyNotFoundException.cs
- SpotLight.cs
- SizeValueSerializer.cs
- InheritanceContextHelper.cs
- StrokeCollection2.cs
- GeneratedCodeAttribute.cs
- NavigationFailedEventArgs.cs
- DbFunctionCommandTree.cs
- path.cs
- CommentAction.cs
- SqlTopReducer.cs
- TreeNode.cs
- Floater.cs
- HttpProxyCredentialType.cs
- ParagraphVisual.cs
- NameGenerator.cs
- RoutedEventValueSerializer.cs
- SqlProviderManifest.cs
- EncodingDataItem.cs
- ProcessInputEventArgs.cs
- CreateUserWizard.cs
- ActivityExecutionContextCollection.cs
- WhereaboutsReader.cs
- HttpCookie.cs
- CodeNamespaceImport.cs
- CultureTable.cs
- SharedUtils.cs
- SByteStorage.cs
- CopyAttributesAction.cs
- GradientPanel.cs
- EventLogTraceListener.cs
- ColorContextHelper.cs
- StyleSelector.cs
- ExclusiveTcpTransportManager.cs
- CalendarDateRange.cs
- TreeNode.cs
- LocatorBase.cs
- WebServiceParameterData.cs
- ValidatingCollection.cs
- Decimal.cs
- MinMaxParagraphWidth.cs
- PeerCustomResolverBindingElement.cs
- filewebrequest.cs
- __TransparentProxy.cs
- PolyQuadraticBezierSegment.cs
- PermissionSetTriple.cs
- DependentList.cs
- ClearCollection.cs
- Hash.cs
- RepeaterItemEventArgs.cs
- ClipboardProcessor.cs
- PropertyPath.cs
- ApplicationTrust.cs
- WindowsContainer.cs
- PersonalizationProvider.cs
- TypeDescriptionProvider.cs
- SessionIDManager.cs
- SvcFileManager.cs
- ImageConverter.cs
- PropagatorResult.cs
- EntityContainer.cs
- Socket.cs
- SchemaDeclBase.cs
- DataBoundControlAdapter.cs
- TableLayoutSettings.cs
- EndEvent.cs
- Timer.cs
- Transform3DCollection.cs
- XamlSerializerUtil.cs
- RequestContext.cs
- FixedSOMTextRun.cs
- CmsUtils.cs
- MissingFieldException.cs
- HandleExceptionArgs.cs
- MimeWriter.cs
- XmlWriter.cs
- PrimaryKeyTypeConverter.cs
- TextAnchor.cs
- SmiConnection.cs
- NestedContainer.cs
- ClientFormsAuthenticationCredentials.cs
- ConfigPathUtility.cs
- SqlBinder.cs
- OleDbError.cs
- mediaclock.cs
- VersionPair.cs
- CodeDirectionExpression.cs
- TdsParserStateObject.cs
- NullableIntAverageAggregationOperator.cs
- Transform3D.cs
- ProcessMonitor.cs
- SchemaTypeEmitter.cs
- NetCodeGroup.cs
- BezierSegment.cs
- EntityDataSourceWizardForm.cs