//
// NKalore Compiler related class
//
// Licensed under the terms of the GNU GPL
//
// Author:
// Guilherme Labigalini (glabega@gmail.com), 2005
//
// http://aspectsharpcomp.sourceforge.net/
using System;
namespace Mono.CSharp.AOP{
public class UniqueStringHelper
{
#region CTOR
private UniqueStringHelper()
{
}
#endregion
#region Public Members
public static string GetUniqueString(string prefix)
{
return prefix + GetHashString();
}
public static string GetHashString()
{
string hash = ((ulong)Guid.NewGuid().ToString().GetHashCode()).ToString();
return hash;
}
#endregion
}
}
|