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 / Principal / IdentityReference.cs / 1 / IdentityReference.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System; using System.Security.Policy; // defines Url class using System.Globalization; namespace System.Security.Principal { [System.Runtime.InteropServices.ComVisible(false)] public abstract class IdentityReference { internal IdentityReference() { // exists to prevent creation user-derived classes (for now) } // public abstract string Scheme { get; } public abstract string Value { get; } // public virtual Url Url // { // get { return new Url(""); } // public abstract bool IsValidTargetType( Type targetType ); public abstract IdentityReference Translate( Type targetType ); public override abstract bool Equals( object o ); public override abstract int GetHashCode(); public override abstract string ToString(); public static bool operator==( IdentityReference left, IdentityReference right ) { object l = left; object r = right; if ( l == null && r == null ) { return true; } else if ( l == null || r == null ) { return false; } else { return left.Equals( right ); } } public static bool operator!=( IdentityReference left, IdentityReference right ) { return !( left == right ); // invoke operator== } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System; using System.Security.Policy; // defines Url class using System.Globalization; namespace System.Security.Principal { [System.Runtime.InteropServices.ComVisible(false)] public abstract class IdentityReference { internal IdentityReference() { // exists to prevent creation user-derived classes (for now) } // public abstract string Scheme { get; } public abstract string Value { get; } // public virtual Url Url // { // get { return new Url(""); } // public abstract bool IsValidTargetType( Type targetType ); public abstract IdentityReference Translate( Type targetType ); public override abstract bool Equals( object o ); public override abstract int GetHashCode(); public override abstract string ToString(); public static bool operator==( IdentityReference left, IdentityReference right ) { object l = left; object r = right; if ( l == null && r == null ) { return true; } else if ( l == null || r == null ) { return false; } else { return left.Equals( right ); } } public static bool operator!=( IdentityReference left, IdentityReference right ) { return !( left == right ); // invoke operator== } } } // 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
- LocationSectionRecord.cs
- EntityDataSourceUtil.cs
- HelloMessage11.cs
- GenericEnumConverter.cs
- LineProperties.cs
- BitConverter.cs
- GuidelineCollection.cs
- IssuedTokenParametersEndpointAddressElement.cs
- CodeAttributeDeclaration.cs
- Span.cs
- IntSecurity.cs
- Win32.cs
- ToolStripSeparator.cs
- ReliableReplySessionChannel.cs
- AccessDataSource.cs
- ConsoleKeyInfo.cs
- Viewport2DVisual3D.cs
- XPathChildIterator.cs
- ProxyHelper.cs
- MetadataSerializer.cs
- ToolStripItemCollection.cs
- ZoomPercentageConverter.cs
- SqlDataReaderSmi.cs
- FileDialog.cs
- SQLInt16Storage.cs
- RegexStringValidator.cs
- embossbitmapeffect.cs
- WizardPanelChangingEventArgs.cs
- PartitionedStream.cs
- SoapClientMessage.cs
- HtmlTextArea.cs
- SapiGrammar.cs
- CategoryGridEntry.cs
- PathGeometry.cs
- ForeignKeyConstraint.cs
- ServiceContractGenerationContext.cs
- SqlDeflator.cs
- FusionWrap.cs
- ReflectTypeDescriptionProvider.cs
- ResourceReader.cs
- ProxyElement.cs
- UserControlAutomationPeer.cs
- BitmapImage.cs
- WindowsImpersonationContext.cs
- TimeEnumHelper.cs
- OperatorExpressions.cs
- DbQueryCommandTree.cs
- FontConverter.cs
- XamlSerializationHelper.cs
- HtmlElementCollection.cs
- RadioButton.cs
- LineVisual.cs
- IList.cs
- MissingMemberException.cs
- PackageFilter.cs
- RegexStringValidatorAttribute.cs
- ValidationManager.cs
- ControlPersister.cs
- XmlSchemaCollection.cs
- RoleGroupCollection.cs
- FindCriteriaElement.cs
- DBCommand.cs
- GcSettings.cs
- GridItemProviderWrapper.cs
- TextServicesDisplayAttribute.cs
- DummyDataSource.cs
- RouteParametersHelper.cs
- RemotingSurrogateSelector.cs
- NeutralResourcesLanguageAttribute.cs
- XmlProcessingInstruction.cs
- ServiceHttpHandlerFactory.cs
- CategoryValueConverter.cs
- FlowDocumentReaderAutomationPeer.cs
- QueryTask.cs
- processwaithandle.cs
- RuntimeResourceSet.cs
- UnderstoodHeaders.cs
- AnimatedTypeHelpers.cs
- DbConnectionPoolOptions.cs
- HMACMD5.cs
- ToolStripProgressBar.cs
- DataViewSettingCollection.cs
- HttpRequest.cs
- LiteralTextContainerControlBuilder.cs
- HttpWebResponse.cs
- ObjectConverter.cs
- PointF.cs
- CodeGenHelper.cs
- TextLine.cs
- Color.cs
- CredentialCache.cs
- EpmTargetTree.cs
- ScrollViewer.cs
- ConditionalAttribute.cs
- MessageSecurityProtocolFactory.cs
- ISAPIRuntime.cs
- ParentQuery.cs
- ProcessRequestArgs.cs
- ImageMap.cs
- SqlInternalConnection.cs