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
- TextEffect.cs
- COM2PropertyBuilderUITypeEditor.cs
- Grant.cs
- SlipBehavior.cs
- Keyboard.cs
- FileDataSourceCache.cs
- DataGridColumnCollection.cs
- TableLayoutStyle.cs
- PixelFormat.cs
- DesignerVerbCollection.cs
- RewritingProcessor.cs
- QuotedPrintableStream.cs
- DesignTimeParseData.cs
- DocumentPageViewAutomationPeer.cs
- TearOffProxy.cs
- SelectionWordBreaker.cs
- DependencyPropertyValueSerializer.cs
- RIPEMD160.cs
- StringDictionaryCodeDomSerializer.cs
- Int64Storage.cs
- SourceFileBuildProvider.cs
- AnnotationMap.cs
- TraceHandler.cs
- WebBrowserBase.cs
- ConstraintEnumerator.cs
- TreeView.cs
- dataprotectionpermissionattribute.cs
- FormClosingEvent.cs
- BitmapFrame.cs
- DetailsView.cs
- SRDisplayNameAttribute.cs
- ConnectionsZoneDesigner.cs
- Utils.cs
- OuterGlowBitmapEffect.cs
- WebBrowserProgressChangedEventHandler.cs
- HostingPreferredMapPath.cs
- Inflater.cs
- Image.cs
- ThicknessAnimationBase.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- RenderingBiasValidation.cs
- XmlCDATASection.cs
- DbParameterCollection.cs
- HitTestWithGeometryDrawingContextWalker.cs
- TemplateKeyConverter.cs
- MachineKeyValidationConverter.cs
- EditorPartChrome.cs
- WebScriptServiceHost.cs
- CodeTypeDeclaration.cs
- FreeFormDesigner.cs
- InvalidContentTypeException.cs
- SafeHandle.cs
- ContextMenuAutomationPeer.cs
- GeometryGroup.cs
- Model3DGroup.cs
- QuadraticBezierSegment.cs
- FunctionDescription.cs
- ToolTipAutomationPeer.cs
- ImageCodecInfoPrivate.cs
- Utils.cs
- WebPartEditorCancelVerb.cs
- DateRangeEvent.cs
- PersistenceMetadataNamespace.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- QilSortKey.cs
- ParameterBuilder.cs
- mongolianshape.cs
- ZipArchive.cs
- TagMapCollection.cs
- ServerValidateEventArgs.cs
- PropertyPath.cs
- BoolExpressionVisitors.cs
- MtomMessageEncoder.cs
- SiteMapDataSource.cs
- WsdlWriter.cs
- StaticSiteMapProvider.cs
- DbDataRecord.cs
- BufferBuilder.cs
- MessageEnumerator.cs
- LambdaCompiler.Statements.cs
- LongMinMaxAggregationOperator.cs
- HttpApplication.cs
- RtfToken.cs
- UnionExpr.cs
- OperatorExpressions.cs
- XmlEntityReference.cs
- DataGridItem.cs
- AvTrace.cs
- EntityException.cs
- QueryExpr.cs
- QualifiedCellIdBoolean.cs
- VariantWrapper.cs
- ProxyElement.cs
- CapabilitiesUse.cs
- TemplateBamlRecordReader.cs
- XmlBinaryReader.cs
- CellPartitioner.cs
- ZipIOExtraFieldPaddingElement.cs
- TypeContext.cs
- DataBindingHandlerAttribute.cs