mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
Adding reference source for System.Data System.Data.DataSetExtensions System.Data.Entity System.Data.Entity.Design System.Data.Linq System.Data.SqlXml System.ServiceModel System.ServiceModel.Activation System.ServiceModel.Activities System.ServiceModel.Channels System.ServiceModel.Discovery System.ServiceModel.Internals System.ServiceModel.Routing System.ServiceModel.WasHosting System.ServiceModel.Web System.Web System.Web.ApplicationServices System.Web.DynamicData System.Web.Entity System.Web.Entity.Design System.Web.Extensions System.Web.Mobile System.Web.Routing System.Web.Services System.Xml System.Xml.Linq
66 lines
1.6 KiB
C#
66 lines
1.6 KiB
C#
// <copyright>
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace System.ServiceModel.Activities
|
|
{
|
|
using System.Activities;
|
|
using System.Collections.Generic;
|
|
|
|
internal class WorkflowIdentityKey : IEquatable<WorkflowIdentityKey>
|
|
{
|
|
public WorkflowIdentityKey(WorkflowIdentity definitionIdentity)
|
|
{
|
|
this.Identity = definitionIdentity;
|
|
}
|
|
|
|
public WorkflowIdentity Identity
|
|
{
|
|
get;
|
|
private set;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
int hashCode = 0;
|
|
|
|
if (this.Identity != null)
|
|
{
|
|
hashCode ^= this.Identity.GetHashCode();
|
|
}
|
|
|
|
return hashCode;
|
|
}
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
WorkflowIdentityKey workflowIdentityKey = obj as WorkflowIdentityKey;
|
|
if (workflowIdentityKey == null)
|
|
{
|
|
return false;
|
|
}
|
|
else
|
|
{
|
|
return this.Equals(workflowIdentityKey);
|
|
}
|
|
}
|
|
|
|
public bool Equals(WorkflowIdentityKey other)
|
|
{
|
|
if (other != null)
|
|
{
|
|
if (this.Identity != null)
|
|
{
|
|
return this.Identity.Equals(other.Identity);
|
|
}
|
|
else
|
|
{
|
|
return object.ReferenceEquals(this.Identity, other.Identity);
|
|
}
|
|
}
|
|
|
|
return false;
|
|
}
|
|
}
|
|
}
|