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
- AppDomain.cs
- WorkflowFileItem.cs
- PropVariant.cs
- UnaryOperationBinder.cs
- SelectionPattern.cs
- Selector.cs
- SharedStatics.cs
- HttpFileCollection.cs
- NetSectionGroup.cs
- XmlObjectSerializerContext.cs
- IISMapPath.cs
- NameValueConfigurationCollection.cs
- CanonicalFontFamilyReference.cs
- FilterableAttribute.cs
- HelpProvider.cs
- MeshGeometry3D.cs
- DesignerTransaction.cs
- QueryMath.cs
- HwndHost.cs
- BitmapMetadataBlob.cs
- httpstaticobjectscollection.cs
- WindowsPrincipal.cs
- StringValidatorAttribute.cs
- __TransparentProxy.cs
- ValidationRuleCollection.cs
- ImmutableCommunicationTimeouts.cs
- SingleResultAttribute.cs
- SelectedDatesCollection.cs
- PropertyEmitter.cs
- ByteStreamBufferedMessageData.cs
- ScrollBarAutomationPeer.cs
- GeneratedView.cs
- ReadOnlyHierarchicalDataSource.cs
- ConfigXmlCDataSection.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- TemplateInstanceAttribute.cs
- InternalsVisibleToAttribute.cs
- RequestQueue.cs
- CompilerState.cs
- DirectoryObjectSecurity.cs
- DbDataReader.cs
- FilteredReadOnlyMetadataCollection.cs
- invalidudtexception.cs
- ScriptingScriptResourceHandlerSection.cs
- Roles.cs
- UInt64.cs
- EmptyEnumerator.cs
- UIPermission.cs
- QueryResult.cs
- ComponentSerializationService.cs
- BlurBitmapEffect.cs
- DataBindingCollection.cs
- SafeHandles.cs
- ViewStateModeByIdAttribute.cs
- LinqDataView.cs
- ADMembershipProvider.cs
- ProfileEventArgs.cs
- TreeNodeCollection.cs
- DataGridViewAutoSizeModeEventArgs.cs
- ToolStripManager.cs
- ToolStripPanelSelectionGlyph.cs
- SerialReceived.cs
- SvcMapFile.cs
- CorrelationKey.cs
- DictionaryTraceRecord.cs
- XmlSignatureManifest.cs
- ManifestSignatureInformation.cs
- CodeStatementCollection.cs
- RotateTransform3D.cs
- ListViewGroupConverter.cs
- _ConnectOverlappedAsyncResult.cs
- AddressUtility.cs
- FrameworkReadOnlyPropertyMetadata.cs
- EntityDataSourceContextCreatingEventArgs.cs
- CaseStatement.cs
- SecurityDescriptor.cs
- GuidelineSet.cs
- Identity.cs
- FrameworkElementFactoryMarkupObject.cs
- TreeNodeBindingDepthConverter.cs
- DrawingBrush.cs
- InstalledFontCollection.cs
- HighlightComponent.cs
- QueueTransferProtocol.cs
- CapabilitiesState.cs
- DeferredRunTextReference.cs
- IconBitmapDecoder.cs
- _ListenerRequestStream.cs
- CounterSample.cs
- XmlTypeMapping.cs
- SamlAssertionKeyIdentifierClause.cs
- SchemaTypeEmitter.cs
- SerializableAttribute.cs
- TranslateTransform.cs
- precedingsibling.cs
- SocketPermission.cs
- StaticSiteMapProvider.cs
- AudioException.cs
- IndentedTextWriter.cs
- TypeToArgumentTypeConverter.cs