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
- BinHexDecoder.cs
- PropertyGridDesigner.cs
- BitArray.cs
- GetWinFXPath.cs
- SrgsRuleRef.cs
- ThemeDictionaryExtension.cs
- GetPageNumberCompletedEventArgs.cs
- ContourSegment.cs
- CellLabel.cs
- FontStretches.cs
- FileLogRecord.cs
- ActivityCollectionMarkupSerializer.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- Mapping.cs
- ListDictionaryInternal.cs
- InstancePersistenceException.cs
- XmlDataCollection.cs
- IntegerValidatorAttribute.cs
- FormViewUpdatedEventArgs.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- IndexerReference.cs
- CodeArrayIndexerExpression.cs
- ResourcesChangeInfo.cs
- CodeExporter.cs
- EmptyEnumerator.cs
- MultiPropertyDescriptorGridEntry.cs
- Environment.cs
- Keywords.cs
- ContentHostHelper.cs
- SignatureTargetIdManager.cs
- WebContext.cs
- XmlRawWriterWrapper.cs
- TextBox.cs
- SqlComparer.cs
- DataRecordObjectView.cs
- ISSmlParser.cs
- TypeLibConverter.cs
- SamlAuthorizationDecisionClaimResource.cs
- Label.cs
- OperationCanceledException.cs
- ResourceAssociationType.cs
- Attributes.cs
- BinaryReader.cs
- DBParameter.cs
- XPathSingletonIterator.cs
- ResXBuildProvider.cs
- PolyQuadraticBezierSegment.cs
- DiagnosticsConfiguration.cs
- AnnotationStore.cs
- WinFormsComponentEditor.cs
- XPathSingletonIterator.cs
- ConnectionConsumerAttribute.cs
- SecurityTokenException.cs
- ToolboxItemWrapper.cs
- UnsafeNativeMethodsMilCoreApi.cs
- FigureParagraph.cs
- TdsValueSetter.cs
- DependencyPropertyDescriptor.cs
- ServiceModelInstallComponent.cs
- PageContentAsyncResult.cs
- DataGridTablesFactory.cs
- TraceData.cs
- BuildResultCache.cs
- VisualTreeHelper.cs
- UserPreferenceChangingEventArgs.cs
- NetNamedPipeBinding.cs
- CheckPair.cs
- MouseEvent.cs
- UpDownEvent.cs
- CFStream.cs
- CharacterMetrics.cs
- GeneralTransform3DGroup.cs
- QilList.cs
- WebBaseEventKeyComparer.cs
- PersonalizationEntry.cs
- SectionInformation.cs
- Int16AnimationUsingKeyFrames.cs
- XmlSchemaSimpleContentRestriction.cs
- CodeBlockBuilder.cs
- Stroke.cs
- hebrewshape.cs
- newinstructionaction.cs
- Membership.cs
- ParagraphResult.cs
- ToolBarDesigner.cs
- SqlFunctionAttribute.cs
- IRCollection.cs
- DataListCommandEventArgs.cs
- Helpers.cs
- QilLiteral.cs
- IdentifierService.cs
- Serializer.cs
- DropTarget.cs
- HtmlToClrEventProxy.cs
- EmptyStringExpandableObjectConverter.cs
- TransformerInfo.cs
- LinqDataSourceDisposeEventArgs.cs
- ParameterToken.cs
- assertwrapper.cs
- DBSchemaRow.cs