diff --git a/data/templates/file/CSharp/CSharp.ConfigurationElement.xft b/data/templates/file/CSharp/CSharp.ConfigurationElement.xft index f6d945b633..319e8af53e 100644 --- a/data/templates/file/CSharp/CSharp.ConfigurationElement.xft +++ b/data/templates/file/CSharp/CSharp.ConfigurationElement.xft @@ -1,20 +1,20 @@ <?xml version="1.0"?> -<Template author="Justin Dearing" version="1.0"> +<Template author="Justin Dearing" version="1.1"> <Config name = "${res:Templates.File.ConfigurationElement.Name}" icon = "C#.File.NewClass" category = "C#" - defaultname = "Class${Number}.cs" + defaultname = "Class${Number}.cs" language = "C#"/> <Description>${res:Templates.File.ConfigurationElement.Description}</Description> <!-- Special new file templates: - ${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension - ${FullName} -> Full generated path name - ${FileName} -> File name with extension - ${FileNameWithoutExtension} -> File name without extension + ${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension + ${FullName} -> Full generated path name + ${FileName} -> File name with extension + ${FileNameWithoutExtension} -> File name without extension ${Extension} -> Extension in the form ".cs" - ${Path} -> Full path of the file + ${Path} -> Full path of the file ${ClassName} -> Class name (generally FileNameWithoutExtension w/o 'bad' characters) --> <Files> diff --git a/data/templates/file/CSharp/CSharp.ConfigurationElementCollection.xft b/data/templates/file/CSharp/CSharp.ConfigurationElementCollection.xft index 8b6e87e89a..0c7c0d90b4 100644 --- a/data/templates/file/CSharp/CSharp.ConfigurationElementCollection.xft +++ b/data/templates/file/CSharp/CSharp.ConfigurationElementCollection.xft @@ -1,20 +1,20 @@ <?xml version="1.0"?> -<Template author="Justin Dearing" version="1.0"> +<Template author="Justin Dearing" version="1.1"> <Config name = "${res:Templates.File.ConfigurationElementCollection.Name}" icon = "C#.File.NewClass" category = "C#" - defaultname = "Class${Number}.cs" + defaultname = "Class${Number}.cs" language = "C#"/> <Description>${res:Templates.File.ConfigurationElementCollection.Description}</Description> <!-- Special new file templates: - ${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension - ${FullName} -> Full generated path name - ${FileName} -> File name with extension - ${FileNameWithoutExtension} -> File name without extension + ${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension + ${FullName} -> Full generated path name + ${FileName} -> File name with extension + ${FileNameWithoutExtension} -> File name without extension ${Extension} -> Extension in the form ".cs" - ${Path} -> Full path of the file + ${Path} -> Full path of the file ${ClassName} -> Class name (generally FileNameWithoutExtension w/o 'bad' characters) --> <Files> diff --git a/data/templates/file/CSharp/CSharp.ConfigurationSection.xft b/data/templates/file/CSharp/CSharp.ConfigurationSection.xft index 2b8498a9b4..4d025a21b2 100644 --- a/data/templates/file/CSharp/CSharp.ConfigurationSection.xft +++ b/data/templates/file/CSharp/CSharp.ConfigurationSection.xft @@ -1,5 +1,5 @@ <?xml version="1.0"?> -<Template author="Justin Dearing" version="1.0"> +<Template author="Justin Dearing" version="1.1"> <Config name = "${res:Templates.File.ConfigurationSection.Name}" icon = "C#.File.NewClass" @@ -9,12 +9,12 @@ <Description>${res:Templates.File.ConfigurationSection.Description}</Description> <!-- Special new file templates: - ${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension - ${FullName} -> Full generated path name - ${FileName} -> File name with extension - ${FileNameWithoutExtension} -> File name without extension + ${StandardNamespace} -> Standardnamespace of the current project or FileNameWithoutExtension + ${FullName} -> Full generated path name + ${FileName} -> File name with extension + ${FileNameWithoutExtension} -> File name without extension ${Extension} -> Extension in the form ".cs" - ${Path} -> Full path of the file + ${Path} -> Full path of the file ${ClassName} -> Class name (generally FileNameWithoutExtension w/o 'bad' characters) --> <Files> diff --git a/data/templates/file/CSharp/ConfigurationElement.cs b/data/templates/file/CSharp/ConfigurationElement.cs index 226d456aee..f41077e80e 100644 --- a/data/templates/file/CSharp/ConfigurationElement.cs +++ b/data/templates/file/CSharp/ConfigurationElement.cs @@ -5,6 +5,10 @@ using System.Configuration; namespace ${StandardNamespace} { + /// <summary> + /// Represents a single XML tag inside a ConfigurationSection + /// or a ConfigurationElementCollection. + /// </summary> public sealed class ${ClassName}Element : ConfigurationElement { /// <summary> diff --git a/data/templates/file/CSharp/ConfigurationElementCollection.cs b/data/templates/file/CSharp/ConfigurationElementCollection.cs index 626dafdf97..ed5f3edc58 100644 --- a/data/templates/file/CSharp/ConfigurationElementCollection.cs +++ b/data/templates/file/CSharp/ConfigurationElementCollection.cs @@ -7,9 +7,9 @@ using System.Configuration; namespace ${StandardNamespace} { /// <summary> - /// Description of ${ClassName}. + /// A collection of ${ClassName}Element(s). /// </summary> - public sealed class ${ClassName}Collection : ConfigurationElementCollection + public class ${ClassName}Collection : ConfigurationElementCollection { #region Properties diff --git a/data/templates/file/CSharp/ConfigurationSection.cs b/data/templates/file/CSharp/ConfigurationSection.cs index 16efd68cba..001a1ddce2 100644 --- a/data/templates/file/CSharp/ConfigurationSection.cs +++ b/data/templates/file/CSharp/ConfigurationSection.cs @@ -8,17 +8,27 @@ namespace ${StandardNamespace} /// <summary> /// Configuration settings for ${ClassName}. /// </summary> -public class ${ClassName}Section : ConfigurationSection + public class ${ClassName}Section : ConfigurationSection { /// <summary> - /// Collection of tables (auctually views) to generate - /// reports from. + /// A custom XML section for an applications configuration file. /// </summary> [ConfigurationProperty("customSection", IsDefaultCollection = true)] public ${ClassName}Collection ${ClassName} { get { return (${ClassName}Collection) base["customSection"]; } } + + + /// <summary> + /// Default Constructor. + /// </summary> + public PlaneDisasterSection () : base () { + //Allow this section to be stored in user.app. By default this is forbidden. + this.SectionInformation.AllowExeDefinition = + ConfigurationAllowExeDefinition.MachineToLocalUser; + } + } }