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
- CallbackException.cs
- DSASignatureFormatter.cs
- TemplatedEditableDesignerRegion.cs
- UnsafePeerToPeerMethods.cs
- Logging.cs
- XmlImplementation.cs
- AtomMaterializerLog.cs
- CounterSample.cs
- MappingSource.cs
- ApplicationTrust.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- XMLSyntaxException.cs
- DataGridItemCollection.cs
- ToolStripPanel.cs
- BufferedGraphics.cs
- ObjectDataSourceStatusEventArgs.cs
- DataExchangeServiceBinder.cs
- MediaPlayerState.cs
- DesignerVerbCollection.cs
- WebServiceFault.cs
- PageRanges.cs
- UriSection.cs
- SafeNativeMemoryHandle.cs
- ModelFunction.cs
- _AcceptOverlappedAsyncResult.cs
- Splitter.cs
- ClassHandlersStore.cs
- LocalizableAttribute.cs
- WindowsUpDown.cs
- ComplexLine.cs
- ManagementNamedValueCollection.cs
- GlobalItem.cs
- ServerValidateEventArgs.cs
- SecurityContext.cs
- _LocalDataStoreMgr.cs
- HtmlSelectionListAdapter.cs
- ObjectHandle.cs
- MessageQueueCriteria.cs
- SvcMapFileSerializer.cs
- CheckBoxAutomationPeer.cs
- ConsoleEntryPoint.cs
- SafeNativeMethods.cs
- XamlSerializerUtil.cs
- EntityStoreSchemaGenerator.cs
- ToolZone.cs
- HyperLinkDataBindingHandler.cs
- HtmlAnchor.cs
- NotifyParentPropertyAttribute.cs
- FontUnit.cs
- MultipartIdentifier.cs
- XpsResourcePolicy.cs
- ArrayConverter.cs
- TypeUnloadedException.cs
- DescendentsWalkerBase.cs
- DefaultParameterValueAttribute.cs
- FactoryRecord.cs
- NameValuePair.cs
- Configuration.cs
- ContextActivityUtils.cs
- OdbcConnectionString.cs
- PositiveTimeSpanValidator.cs
- CompiledELinqQueryState.cs
- ExpressionNormalizer.cs
- ListControl.cs
- Vector3D.cs
- CqlGenerator.cs
- StaticTextPointer.cs
- XamlInterfaces.cs
- SingleAnimationUsingKeyFrames.cs
- StrokeSerializer.cs
- keycontainerpermission.cs
- SafeCoTaskMem.cs
- NetTcpBindingCollectionElement.cs
- FileIOPermission.cs
- XpsFilter.cs
- UnmanagedBitmapWrapper.cs
- AutoResetEvent.cs
- StringDictionaryCodeDomSerializer.cs
- XamlStackWriter.cs
- FamilyMap.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- TextureBrush.cs
- EndEvent.cs
- FlowPanelDesigner.cs
- MaskedTextBoxTextEditor.cs
- RotateTransform.cs
- WSSecureConversationFeb2005.cs
- Converter.cs
- ForeignKeyConstraint.cs
- BaseDataList.cs
- SessionStateModule.cs
- PropertyItemInternal.cs
- SerializableAttribute.cs
- FolderBrowserDialog.cs
- ObjectListShowCommandsEventArgs.cs
- TiffBitmapDecoder.cs
- ToolStripActionList.cs
- LayoutEngine.cs
- TraceHandler.cs
- ListViewHitTestInfo.cs