public static string GetOperationName(this Type type)
{
var typeName = type.FullName?.LeftPart("[[") //Generic Fullname
.Replace(type.Namespace + ".", "") //Trim Namespaces
.Replace("+", ".") ?? type.Name;
return type.IsGenericParameter ? "'" + typeName : typeName;
}