get model + editor config in space

This commit is contained in:
2020-05-02 12:20:22 +02:00
parent 31b0f96ce1
commit bf29f29ff5
11 changed files with 169 additions and 14 deletions
+18
View File
@@ -1,5 +1,6 @@
using System;
using System.Globalization;
using System.Linq;
namespace zero.Core.Extensions
{
@@ -87,5 +88,22 @@ namespace zero.Core.Extensions
}
return input;
}
public static string ToCamelCaseId(this string input)
{
if (String.IsNullOrEmpty(input))
{
return input;
}
if (input.Length < 2)
{
return input.ToLowerInvariant();
}
string[] parts = input.Split('.');
return String.Join(".", parts.Select(x => x.ToCamelCase()));
}
}
}