Asgard.ScriptSystem.Javascript.Modules.EntityModule.ConvertTypeList C# (CSharp) Method

ConvertTypeList() private method

private ConvertTypeList ( string type1, string type2, string type3, string type4 ) : System.Type[]
type1 string
type2 string
type3 string
type4 string
return System.Type[]
        private Type[] ConvertTypeList(string type1, string type2, string type3, string type4)
        {
            string[] stringTypes = new string[4];
            stringTypes[0] = type1;
            stringTypes[1] = type2;
            stringTypes[2] = type3;
            stringTypes[3] = type4;
            List<Type> types = new List<Type>();

            foreach (var type in stringTypes)
            {
                if (type == null) break;
                {
                    var t = getTypeByName(type);
                    if (t != null)
                    {
                        types.Add(t);
                    }
                }
            }

            return types.ToArray();
        }