2017-01-31 12:01:08 +01:00
|
|
|
|
using System.Reflection;
|
|
|
|
|
|
|
|
|
|
namespace Tapeti.Flow.FlowHelpers
|
|
|
|
|
{
|
2019-08-15 11:26:55 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Converts a method into a unique string representation.
|
|
|
|
|
/// </summary>
|
2017-01-31 12:01:08 +01:00
|
|
|
|
public static class MethodSerializer
|
|
|
|
|
{
|
2019-08-15 11:26:55 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Converts a method into a unique string representation.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="method"></param>
|
2017-01-31 12:01:08 +01:00
|
|
|
|
public static string Serialize(MethodInfo method)
|
|
|
|
|
{
|
|
|
|
|
return method.Name + '@' + method.DeclaringType?.Assembly.GetName().Name + ':' + method.DeclaringType?.FullName;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|