Commits

Jeff Craig committed d4cc486 Merge

Merge

Comments (0)

Files changed (2)

CodeCamp/CodeCampConfig/Configuration.tt

 		string name = property.Attributes["name"].Value.Replace(" ", "_");
 		char seperator = property.HasAttribute("seperator") ?
 							property.Attributes["seperator"].Value[0] : ';';
+		string summary = property.HasAttribute("summary") ?
+							property.Attributes["summary"].Value : String.Empty;
 		switch (property.Attributes["type"].Value.ToLower()) {
 			case ("int"):
-				IntProperty(name);
+				IntProperty(name, summary);
 				break;
 			case ("string[]"):
-				StringArrayProperty(name, seperator);
+				StringArrayProperty(name, seperator, summary);
 				break;
 			case ("connectionstring"):
-				ConnectionString(name);
+				ConnectionString(name, summary);
 				break;
 			default:
-				StringProperty(name);
+				StringProperty(name, summary);
 				break;
 		}
    		
 <#}#>}
 <#+
   // Insert any template procedures here
-void StringProperty(string name)
+void StringProperty(string name, string summary)
 {
-#>
-	public static string <#= name #>
+	if(summary != String.Empty) { #>	
+		/// <summary>
+		/// <#= summary #>
+		/// </summary><#+}#>	
+		public static string <#= name #>
 		{
 			get
 			{
 		}
 	<#+
 }
-void ConnectionString(string name)
+void ConnectionString(string name, string summary)
 {
-#>
-	public static string <#= name #>
+	if(summary != String.Empty) { #>	
+		/// <summary>
+		/// <#= summary #>
+		/// </summary><#+}#>	
+		public static string <#= name #>
 		{
 			get
 			{
 		}
 	<#+
 }
-void StringArrayProperty(string name, char seperator)
+void StringArrayProperty(string name, char seperator, string summary)
 {
-#>
-	public static string[] <#= name #>
+	if(summary != String.Empty) { #>	
+		/// <summary>
+		/// <#= summary #>
+		/// </summary><#+}#>	
+		public static string[] <#= name #>
 		{
 			get
 			{
 		}
 	<#+
 }
-void IntProperty(string name)
+void IntProperty(string name, string summary)
 {
-#>
-	public static int <#= name #>
+	if(summary != String.Empty) { #>	
+		/// <summary>
+		/// <#= summary #>
+		/// </summary><#+}#>	
+		public static int <#= name #>
 		{
 			get
 			{

CodeCamp/CodeCampConfig/ConfigurationItems.xml

 <root>
   <Group name="Site">
     <Property name="DefaultEvent" type="string"/>
-    <Property name="CodeCampConnectionString" type="connectionstring"/>
+    <Property name="CodeCampConnectionString" type="connectionstring"
+      summary="The Connection string for the Code Camp SQL Database."/>
     <Property name="CopyrightHolder" type="string"/>
   </Group>
   <Group name="Event">
-    <Property name="CurrentEventName" type="string"/>
+    <Property name="CurrentEventName" type="string"
+              summary="The name of the current Event"/>
   </Group>
   <Group name="Examples">
     <Property name="ExampleEventString" type="string"/>