#develop (short for SharpDevelop) is a free IDE for .NET programming languages.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

37 lines
927 B

// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Mono.Cecil;
namespace ICSharpCode.CodeQuality
{
/// <summary>
/// Description of Utils.
/// </summary>
public class Utils
{
[DllImport("gdi32.dll")]
public static extern bool DeleteObject(IntPtr hObject);
}
public class AssemblyNameReferenceComparer : IEqualityComparer<AssemblyNameReference>
{
public bool Equals(AssemblyNameReference x, AssemblyNameReference y)
{
if (x == y) return true;
if (x != null && y != null)
return x.FullName == y.FullName;
return false;
}
public int GetHashCode(AssemblyNameReference obj)
{
if (obj == null) return 0;
return obj.FullName.GetHashCode();
}
}
}