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
- PrimitiveType.cs
- OdbcCommandBuilder.cs
- __ComObject.cs
- XmlSchemaObjectTable.cs
- HybridDictionary.cs
- TrackingMemoryStream.cs
- PtsContext.cs
- LowerCaseStringConverter.cs
- ModuleBuilderData.cs
- CheckBoxDesigner.cs
- SmiSettersStream.cs
- RowCache.cs
- PropertyRecord.cs
- TextPattern.cs
- SoapHeader.cs
- ThreadStartException.cs
- HttpCapabilitiesSectionHandler.cs
- MethodRental.cs
- ToolStripMenuItemCodeDomSerializer.cs
- XmlWrappingWriter.cs
- ToolStripItemImageRenderEventArgs.cs
- WindowsStatusBar.cs
- TransformerTypeCollection.cs
- KeySplineConverter.cs
- InputMethod.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- SerializableAttribute.cs
- COAUTHIDENTITY.cs
- Int32Storage.cs
- RoamingStoreFile.cs
- safelink.cs
- XmlSiteMapProvider.cs
- localization.cs
- ContentType.cs
- MeasurementDCInfo.cs
- IndicShape.cs
- SmiMetaData.cs
- XamlTypeMapper.cs
- LineMetrics.cs
- CustomCategoryAttribute.cs
- DataGridViewCell.cs
- DynamicILGenerator.cs
- ColorContext.cs
- NetworkAddressChange.cs
- ProgressBar.cs
- BuildManagerHost.cs
- ProcessModule.cs
- MetadataItemCollectionFactory.cs
- ExpandableObjectConverter.cs
- AttachmentService.cs
- XPathNode.cs
- BamlMapTable.cs
- _ConnectStream.cs
- CaseInsensitiveOrdinalStringComparer.cs
- WinFormsSecurity.cs
- AttachedPropertyBrowsableAttribute.cs
- PropertyOverridesTypeEditor.cs
- SqlTransaction.cs
- VisualTarget.cs
- XmlAnyElementAttribute.cs
- CryptoApi.cs
- DataGridPageChangedEventArgs.cs
- LogicalExpr.cs
- ActivitySurrogate.cs
- HttpProfileGroupBase.cs
- DrawToolTipEventArgs.cs
- MatrixAnimationUsingPath.cs
- EdmSchemaAttribute.cs
- DataStreams.cs
- DataSourceControlBuilder.cs
- FormsAuthentication.cs
- InvariantComparer.cs
- DbFunctionCommandTree.cs
- ReadOnlyMetadataCollection.cs
- SqlMetaData.cs
- Marshal.cs
- SystemFonts.cs
- CodeDOMUtility.cs
- ConstraintStruct.cs
- ApplicationBuildProvider.cs
- RowToParametersTransformer.cs
- BindingContext.cs
- XmlSignatureManifest.cs
- PowerStatus.cs
- ObjectViewFactory.cs
- SchemaNotation.cs
- CornerRadius.cs
- AlphaSortedEnumConverter.cs
- TextParaLineResult.cs
- TokenBasedSet.cs
- mediaeventargs.cs
- Rfc2898DeriveBytes.cs
- BitmapEffectInputData.cs
- CancellationTokenSource.cs
- PersianCalendar.cs
- WebBrowserContainer.cs
- SafeNativeMethodsOther.cs
- BlockingCollection.cs
- SoapMessage.cs
- AlphabeticalEnumConverter.cs