~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to data/templates/file/CSharp/RecentFileElement.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
${StandardHeader.C#}
 
2
using System;   
 
3
using System.Configuration;
 
4
 
 
5
namespace ${StandardNamespace}
 
6
{
 
7
        /// <summary>
 
8
        /// An xml representation of a recent element.
 
9
        /// </summary>
 
10
        public sealed class RecentFileElement : ConfigurationElement
 
11
        {
 
12
                /// <summary>
 
13
                /// The full path of the recently opened file.
 
14
                /// </summary>
 
15
                [ConfigurationProperty("fileName", IsKey = true, IsRequired = true)]
 
16
                public string Name
 
17
                {
 
18
                        get { return (string)this["fileName"]; }
 
19
                        set { this["fileName"] = value; }
 
20
                }
 
21
                
 
22
                internal RecentFileElement() : base()
 
23
                {}
 
24
                
 
25
                internal RecentFileElement(string FileName)  : base()
 
26
                {
 
27
                        this.Name = FileName;
 
28
                }
 
29
        }
 
30
        
 
31
}
 
32