CCNet.Build.Reconfigure.ProjectPage.ParseDescription C# (CSharp) Method

ParseDescription() private method

private ParseDescription ( string>.Dictionary properties ) : string
properties string>.Dictionary
return string
		private string ParseDescription(Dictionary<string, string> properties)
		{
			var desc = FindByKey(properties, key => key.Contains("desc"));

			if (desc == null)
				throw new InvalidOperationException("Cannot find project description.");

			var norm = desc.CleanWhitespaces();
			if (norm.Length < 10)
				throw new InvalidOperationException("Something is wrong with project description.");

			return norm;
		}