Encog.App.Analyst.Script.Prop.ScriptProperties.ToDots C# (CSharp) Method

ToDots() public static method

Convert a key to the dot form.
public static ToDots ( String str ) : String
str String The key form.
return String
        public static String ToDots(String str)
        {
            int index1 = str.IndexOf(':');
            if (index1 == -1)
            {
                return null;
            }
            int index2 = str.IndexOf('_');
            if (index2 == -1)
            {
                return null;
            }
            String section = str.Substring(0, (index1) - (0));
            String subSection = str.Substring(index1 + 1, (index2) - (index1 + 1));
            String name = str.Substring(index2 + 1);
            return section + "." + subSection + "." + name;
        }