AvalonStudio.Toolchains.Standard.StandardToolChain.GetFileCount C# (CSharp) Method

GetFileCount() private method

private GetFileCount ( IStandardProject project ) : int
project IStandardProject
return int
		private int GetFileCount(IStandardProject project)
		{
			var result = 0;

			foreach (var reference in project.References)
			{
				var standardReference = reference as IStandardProject;

				if (standardReference != null)
				{
					result += GetFileCount(standardReference);
				}
			}

			if (!project.IsBuilding)
			{
				project.IsBuilding = true;

				result += project.SourceFiles.Where(sf => SupportsFile(sf)).Count();
			}

			return result;
		}