Example #1
0
        public override Int32 GetHashCode()
        {
            Int32 hashCode = 0;

            hashCode += AssemblyName.GetHashCode();
            hashCode -= TargetRuntime.GetHashCode();
            hashCode += TargetArchitecture.GetHashCode();
            hashCode -= ExecutionRuntime.GetHashCode();
            hashCode += ExecutionArchitecture.GetHashCode();
            hashCode -= FileName.GetHashCode();
            hashCode += MethodName.GetHashCode();

            return(hashCode);
        }
Example #2
0
 public override String ToString() =>
 $"[{AssemblyName.Format()};{TargetRuntime.Format()};{TargetArchitecture.Format()};{ExecutionRuntime.Format()};{ExecutionArchitecture.Format()};{FileName.Format()};{MethodName.Format()}]";
Example #3
0
        public Int32 CompareTo(IResultKey other)
        {
            if (!Equals(other))
            {
                Int32 result = AssemblyName.CompareTo(other.AssemblyName);
                if (result != 0)
                {
                    return(result);
                }

                result = TargetRuntime.Framework.CompareTo(other.TargetRuntime.Framework);
                if (result != 0)
                {
                    return(result);
                }

                result = TargetRuntime.Version.CompareTo(other.TargetRuntime.Version);
                if (result != 0)
                {
                    return(result);
                }

                result = TargetArchitecture.CompareTo(other.TargetArchitecture);
                if (result != 0)
                {
                    return(result);
                }

                result = ExecutionRuntime.Framework.CompareTo(other.ExecutionRuntime.Framework);
                if (result != 0)
                {
                    return(result);
                }

                result = ExecutionRuntime.Version.CompareTo(other.ExecutionRuntime.Version);
                if (result != 0)
                {
                    return(result);
                }

                result = ExecutionArchitecture.CompareTo(other.ExecutionArchitecture);
                if (result != 0)
                {
                    return(result);
                }

                result = FileName.CompareTo(other.FileName);
                if (result != 0)
                {
                    return(result);
                }

                result = MethodName.CompareTo(other.MethodName);
                if (result != 0)
                {
                    return(result);
                }
            }

            return(0);
        }