Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Principal / IdentityReference.cs / 1305376 / IdentityReference.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //[....] // using System; using System.Security.Policy; // defines Url class using System.Globalization; using System.Diagnostics.Contracts; 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; using System.Diagnostics.Contracts; 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
- Group.cs
- XPathExpr.cs
- GenericEnumerator.cs
- UInt32Storage.cs
- Int32CollectionValueSerializer.cs
- ArgumentElement.cs
- SchemaReference.cs
- FileUpload.cs
- unitconverter.cs
- PhotoPrintingIntent.cs
- WindowsTitleBar.cs
- BinaryObjectInfo.cs
- Soap11ServerProtocol.cs
- ZoneMembershipCondition.cs
- FormViewDeletedEventArgs.cs
- TokenizerHelper.cs
- WindowsGraphicsCacheManager.cs
- XmlFormatReaderGenerator.cs
- RightsManagementEncryptionTransform.cs
- ControlAdapter.cs
- ConfigurationPermission.cs
- ConfigXmlAttribute.cs
- TextDecoration.cs
- SignatureToken.cs
- WorkflowServiceHost.cs
- ResourceDictionary.cs
- PointCollection.cs
- GlobalEventManager.cs
- ImpersonateTokenRef.cs
- StandardBindingImporter.cs
- VoiceInfo.cs
- WebRequest.cs
- TextSelection.cs
- OleDbPropertySetGuid.cs
- ProviderCollection.cs
- XmlTextAttribute.cs
- TabControlAutomationPeer.cs
- ArrayList.cs
- _NetRes.cs
- DesignerSerializerAttribute.cs
- ListSortDescriptionCollection.cs
- DrawingGroupDrawingContext.cs
- ToolStripContainerActionList.cs
- UriWriter.cs
- RemoveStoryboard.cs
- SqlException.cs
- PropertyChangingEventArgs.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- DetailsViewDeleteEventArgs.cs
- LogEntry.cs
- LinkTarget.cs
- VariableAction.cs
- GridItemProviderWrapper.cs
- ZipIOCentralDirectoryBlock.cs
- SoapTypeAttribute.cs
- ResourceReferenceExpressionConverter.cs
- PointF.cs
- AQNBuilder.cs
- HttpStreamMessageEncoderFactory.cs
- DeferredReference.cs
- ContentValidator.cs
- Image.cs
- ResourceProviderFactory.cs
- CodeExporter.cs
- DetailsViewPagerRow.cs
- BidPrivateBase.cs
- SafeFileMapViewHandle.cs
- BaseHashHelper.cs
- FunctionOverloadResolver.cs
- DesignerTransaction.cs
- CachedPathData.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- DetailsViewUpdateEventArgs.cs
- MD5.cs
- RootBrowserWindowProxy.cs
- InputLangChangeRequestEvent.cs
- PropertyItem.cs
- HttpConfigurationContext.cs
- PageStatePersister.cs
- TimersDescriptionAttribute.cs
- FrameworkElementAutomationPeer.cs
- SafeThreadHandle.cs
- CompilerGeneratedAttribute.cs
- UnsafeNetInfoNativeMethods.cs
- SqlComparer.cs
- ListViewContainer.cs
- UpdatePanelTrigger.cs
- Utility.cs
- MetabaseSettings.cs
- WindowsFormsLinkLabel.cs
- UnhandledExceptionEventArgs.cs
- RadioButtonBaseAdapter.cs
- WebControlParameterProxy.cs
- DeflateStream.cs
- tooltip.cs
- DataGridParentRows.cs
- WriteFileContext.cs
- CriticalHandle.cs
- LockedActivityGlyph.cs
- DBSchemaRow.cs