check point
This commit is contained in:
17
framework/Inspectron.Settings.WindowsWizard/PropHelper.cs
Normal file
17
framework/Inspectron.Settings.WindowsWizard/PropHelper.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user