Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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==
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextTabProperties.cs
- ComponentCollection.cs
- TextBlock.cs
- ConfigurationSettings.cs
- OutputScope.cs
- GroupBox.cs
- XamlPathDataSerializer.cs
- UnmanagedMemoryStreamWrapper.cs
- Odbc32.cs
- DesignerGeometryHelper.cs
- ToolStripRendererSwitcher.cs
- FileUtil.cs
- File.cs
- SecurityException.cs
- DropShadowBitmapEffect.cs
- PrinterSettings.cs
- DecoderFallback.cs
- Vector3DConverter.cs
- CompoundFileStreamReference.cs
- VisualBrush.cs
- XmlSignatureProperties.cs
- XmlAttributeCollection.cs
- SqlDataSourceQueryConverter.cs
- RbTree.cs
- PagedDataSource.cs
- TokenCreationParameter.cs
- XpsFontSubsetter.cs
- TraceSection.cs
- InvokeProviderWrapper.cs
- TextAdaptor.cs
- Expander.cs
- SecurityTokenAttachmentMode.cs
- ChannelManager.cs
- Light.cs
- ClonableStack.cs
- storepermissionattribute.cs
- ConstraintCollection.cs
- ServiceOperationInfoTypeConverter.cs
- UnicastIPAddressInformationCollection.cs
- SecurityException.cs
- WebPartConnectionsDisconnectVerb.cs
- ErrorsHelper.cs
- MachineKeyConverter.cs
- CatalogPart.cs
- AdapterDictionary.cs
- NameValueFileSectionHandler.cs
- OperationFormatUse.cs
- ButtonStandardAdapter.cs
- GroupBox.cs
- AssociatedControlConverter.cs
- XmlEntity.cs
- PopupControlService.cs
- Token.cs
- SmtpDigestAuthenticationModule.cs
- AppLevelCompilationSectionCache.cs
- TimelineCollection.cs
- KeyTime.cs
- FixedSOMFixedBlock.cs
- WarningException.cs
- TextUtf8RawTextWriter.cs
- ExtensibleClassFactory.cs
- DirectoryObjectSecurity.cs
- MimeMultiPart.cs
- CollectionChange.cs
- BinaryNegotiation.cs
- SystemFonts.cs
- ThreadAttributes.cs
- EncoderNLS.cs
- IQueryable.cs
- TextBoxAutomationPeer.cs
- SiteMapNodeCollection.cs
- TextBoxLine.cs
- Collection.cs
- AppSettingsReader.cs
- SmiEventSink_Default.cs
- ZoneIdentityPermission.cs
- DataBoundControlAdapter.cs
- SettingsAttributes.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- TypeToStringValueConverter.cs
- QilParameter.cs
- ObjectAnimationUsingKeyFrames.cs
- ConnectionStringSettingsCollection.cs
- CFStream.cs
- DeviceContext.cs
- TypeSource.cs
- Attachment.cs
- StringBuilder.cs
- StylusEventArgs.cs
- Empty.cs
- LabelAutomationPeer.cs
- WebPartZoneBaseDesigner.cs
- ComponentEvent.cs
- EncoderBestFitFallback.cs
- ImmutableObjectAttribute.cs
- VisualStyleInformation.cs
- DebugHandleTracker.cs
- SortedDictionary.cs
- BindingMemberInfo.cs
- GPPOINTF.cs