AcUtils
A high performance abstraction layer for AccuRev
GroupElement.cs
Go to the documentation of this file.
1 
16 using System;
17 using System.Configuration;
18 
19 namespace AcUtils
20 {
24  [Serializable]
25  public sealed class GroupElement : ConfigurationElement
26  {
27  private static ConfigurationProperty _group;
28  private static ConfigurationPropertyCollection _properties;
29 
30  static GroupElement()
31  {
32  _group = new ConfigurationProperty("group", typeof(string),
33  null, ConfigurationPropertyOptions.IsRequired);
34 
35  _properties = new ConfigurationPropertyCollection();
36  _properties.Add(_group);
37  }
38 
42  [ConfigurationProperty("group", DefaultValue = "", IsKey = true, IsRequired = true)]
43  public string Group
44  {
45  get { return (string)base[_group]; }
46  }
47 
48  protected override ConfigurationPropertyCollection Properties
49  {
50  get { return _properties; }
51  }
52  }
53 }
An AccuRev group from the Groups section in .exe.config.
Definition: GroupElement.cs:25
string Group
The group from the Groups section in .exe.config.
Definition: GroupElement.cs:44