FlatRedBall.Glue.Controls.NewFileWindow.GetObjectTypeFromAti C# (CSharp) 메소드

GetObjectTypeFromAti() 공개 메소드

public GetObjectTypeFromAti ( AssetTypeInfo ati ) : string
ati AssetTypeInfo
리턴 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;
            }
        }