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
- TogglePattern.cs
- control.ime.cs
- ReadOnlyMetadataCollection.cs
- Int32CAMarshaler.cs
- DefaultEventAttribute.cs
- WebMethodAttribute.cs
- FormViewInsertEventArgs.cs
- TreeViewImageIndexConverter.cs
- FixedDSBuilder.cs
- Stackframe.cs
- ThemeDirectoryCompiler.cs
- LineGeometry.cs
- DependencyPropertyValueSerializer.cs
- DataGridAutoFormatDialog.cs
- StatusBarAutomationPeer.cs
- GuidTagList.cs
- NavigatorOutput.cs
- WebScriptMetadataFormatter.cs
- EraserBehavior.cs
- WorkflowMarkupSerializationException.cs
- DataTableMappingCollection.cs
- ProgressiveCrcCalculatingStream.cs
- SqlCacheDependency.cs
- ToolStripDropDownButton.cs
- WindowsGraphics.cs
- Trigger.cs
- Documentation.cs
- CaseStatement.cs
- DataTableClearEvent.cs
- Util.cs
- TextModifier.cs
- CorrelationScope.cs
- PropertyTabAttribute.cs
- DataGridViewAdvancedBorderStyle.cs
- ProfileManager.cs
- ResponseStream.cs
- XmlCharCheckingWriter.cs
- SiteMapNodeItem.cs
- DateTimeFormatInfo.cs
- KnownBoxes.cs
- SimpleWorkerRequest.cs
- TypeGenericEnumerableViewSchema.cs
- _Connection.cs
- SectionInput.cs
- TdsRecordBufferSetter.cs
- ObjectConverter.cs
- BackoffTimeoutHelper.cs
- PeerContact.cs
- Renderer.cs
- WebException.cs
- SqlDataSourceView.cs
- LogLogRecordEnumerator.cs
- Type.cs
- TypeSemantics.cs
- PointAnimationClockResource.cs
- DbgCompiler.cs
- XPathNodePointer.cs
- FixedFlowMap.cs
- CharacterMetrics.cs
- AsynchronousChannelMergeEnumerator.cs
- SmtpDigestAuthenticationModule.cs
- HttpApplicationFactory.cs
- WindowsFormsSynchronizationContext.cs
- FilePrompt.cs
- WebReferencesBuildProvider.cs
- CompositeActivityTypeDescriptorProvider.cs
- PropertyInfoSet.cs
- ContentPresenter.cs
- wgx_commands.cs
- _AutoWebProxyScriptEngine.cs
- FixedPage.cs
- StylusLogic.cs
- XmlSchemaAnnotation.cs
- DataQuery.cs
- XmlDocumentViewSchema.cs
- MemoryPressure.cs
- BitmapEffectGroup.cs
- EncryptedKey.cs
- CSharpCodeProvider.cs
- EnumerableRowCollectionExtensions.cs
- MappingMetadataHelper.cs
- AccessViolationException.cs
- DrawingAttributeSerializer.cs
- LOSFormatter.cs
- MailMessageEventArgs.cs
- CmsUtils.cs
- Mapping.cs
- XmlMembersMapping.cs
- ProfileSettingsCollection.cs
- TableLayoutSettings.cs
- AutomationPatternInfo.cs
- MaterialCollection.cs
- TypedTableBaseExtensions.cs
- XPathExpr.cs
- sitestring.cs
- CmsInterop.cs
- MachineKeyConverter.cs
- PointHitTestResult.cs
- WindowsTitleBar.cs
- ToolStripArrowRenderEventArgs.cs