FlatRedBall.Glue.Controls.NewFileWindow.GetObjectTypeFromAti C# (CSharp) Method

GetObjectTypeFromAti() public method

public GetObjectTypeFromAti ( AssetTypeInfo ati ) : string
ati AssetTypeInfo
return string
        public string GetObjectTypeFromAti(AssetTypeInfo ati)
        {
            if (ati == null)
            {
                return null;
            }
            else
            {
                string fileType = ati.FriendlyName;
                if (fileType.Contains("("))
                {
                    fileType = fileType.Substring(0, fileType.IndexOf('('));
                }

                fileType = fileType.Replace(" ", "");
                return fileType;
            }
        }