1
0
mirror of synced 2024-11-13 06:19:16 +00:00
Tapeti/Tapeti.Flow/FlowHelpers/MethodSerializer.cs

20 lines
577 B
C#
Raw Normal View History

using System.Reflection;
namespace Tapeti.Flow.FlowHelpers
{
/// <summary>
/// Converts a method into a unique string representation.
/// </summary>
public static class MethodSerializer
{
/// <summary>
/// Converts a method into a unique string representation.
/// </summary>
/// <param name="method"></param>
public static string Serialize(MethodInfo method)
{
return method.Name + '@' + method.DeclaringType?.Assembly.GetName().Name + ':' + method.DeclaringType?.FullName;
}
}
}