17 lines
575 B
C#
17 lines
575 B
C#
using System.Reflection;
|
|
|
|
namespace Inspectron.Settings.WindowsWizard
|
|
{
|
|
public static class PropHelper
|
|
{
|
|
public static PropertyInfo GetPrp(object obj,string name)
|
|
{
|
|
return obj.GetType().GetProperties(BindingFlags.Public | BindingFlags.Instance)
|
|
.First(x => x.Name == name);
|
|
}
|
|
public static string SplitCamelCase(string input)
|
|
{
|
|
return System.Text.RegularExpressions.Regex.Replace(input, "([A-Z])", " $1", System.Text.RegularExpressions.RegexOptions.Compiled).Trim();
|
|
}
|
|
}
|
|
} |