DotNetNuke.Modules.Xml.Parameters.ParameterInfo.ParseType C# (CSharp) Method

ParseType() private static method

Converts a string representation of a ParameterType to its object value.
private static ParseType ( string type ) : ParameterType
type string Value to convert.
return ParameterType
        private static ParameterType ParseType(string type)
        {
            var objType = default(ParameterType);
            try
            {
                objType = (ParameterType) Enum.Parse(objType.GetType(), type);
            }
            catch
            {
                objType = ParameterType.StaticValue;
            }
            return objType;
        }