ServiceClientGenerator.ProjectFileConfiguration.GetPlatformFolderName C# (CSharp) Method

GetPlatformFolderName() private method

Returns true if the specified folder ends with one of the custom code platform folder names declared for this configuration.
private GetPlatformFolderName ( string folder ) : string
folder string
return string
        private string GetPlatformFolderName(string folder)
        {
            var tokens = folder.Split('\\');
            string platformFolder = null;
            for (int i = tokens.Length - 1; i >= 0; i--)
            {
                if (tokens[i].StartsWith("_"))
                {
                    platformFolder = tokens[i];
                    break;
                }
            }

            return platformFolder;
        }